Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Unified Diff: runtime/vm/intermediate_language.h

Issue 10876052: If a PolymorphicInstanceCall has a single target, .. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 11256)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -719,12 +719,13 @@
class PolymorphicInstanceCallComp : public TemplateComputation<0> {
public:
- explicit PolymorphicInstanceCallComp(InstanceCallComp* comp)
- : instance_call_(comp) {
+ explicit PolymorphicInstanceCallComp(InstanceCallComp* comp, bool with_checks)
+ : instance_call_(comp), with_checks_(with_checks) {
ASSERT(instance_call_ != NULL);
}
InstanceCallComp* instance_call() const { return instance_call_; }
+ bool with_checks() const { return with_checks_; }
void PrintTo(BufferFormatter* f) const;
@@ -738,6 +739,7 @@
private:
InstanceCallComp* instance_call_;
+ const bool with_checks_;
DISALLOW_COPY_AND_ASSIGN(PolymorphicInstanceCallComp);
};

Powered by Google App Engine
This is Rietveld 408576698