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

Unified Diff: vm/object.cc

Issue 12096105: Instead of setting up the can intrinsify state lazily setup eagerly (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « vm/object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.cc
===================================================================
--- vm/object.cc (revision 17993)
+++ vm/object.cc (working copy)
@@ -25,6 +25,7 @@
#include "vm/exceptions.h"
#include "vm/growable_array.h"
#include "vm/heap.h"
+#include "vm/intrinsifier.h"
#include "vm/object_store.h"
#include "vm/parser.h"
#include "vm/runtime_entry.h"
@@ -1090,6 +1091,10 @@
ClassFinalizer::VerifyBootstrapClasses();
MarkInvisibleFunctions();
+
+ // Set up the intrinsic state of all functions (core, math and scalar list).
+ Intrinsifier::InitializeState();
+
return Error::null();
}
@@ -3596,8 +3601,8 @@
}
-void Function::set_intrinsic_kind(IntrinsicKind value) const {
- set_kind_tag(IntrinsicKindBits::update(value, raw_ptr()->kind_tag_));
+void Function::set_is_intrinsic(bool value) const {
+ set_kind_tag(IntrinsicBit::update(value, raw_ptr()->kind_tag_));
}
@@ -4106,7 +4111,7 @@
result.set_is_abstract(is_abstract);
result.set_is_external(is_external);
result.set_is_visible(true); // Will be computed later.
- result.set_intrinsic_kind(kUnknownIntrinsic);
+ result.set_is_intrinsic(false);
result.set_owner(owner);
result.set_token_pos(token_pos);
result.set_end_token_pos(token_pos);
« no previous file with comments | « vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698