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

Unified Diff: runtime/vm/object.h

Issue 11361225: In optimized code use IC calls for instance calls that have no IC data instead of deoptimizing. The… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/object.h
===================================================================
--- runtime/vm/object.h (revision 14798)
+++ runtime/vm/object.h (working copy)
@@ -2799,6 +2799,12 @@
void set_deopt_reason(intptr_t reason) const;
+ bool is_closure_call() const {
+ return raw_ptr()->is_closure_call_ == 1;
Kevin Millikin (Google) 2012/11/13 17:56:53 There's an extra space before ==.
srdjan 2012/11/13 18:21:39 Done.
+ }
+
+ void set_is_closure_call(bool value) const;
+
intptr_t NumberOfChecks() const;
static intptr_t InstanceSize() {
@@ -2821,6 +2827,10 @@
return OFFSET_OF(RawICData, function_);
}
+ static intptr_t is_closure_call_offset() {
+ return OFFSET_OF(RawICData, is_closure_call_);
+ }
+
// Adding checks.
// Adds one more class test to ICData. Length of 'classes' must be equal to

Powered by Google App Engine
This is Rietveld 408576698