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

Unified Diff: runtime/vm/intrinsifier.cc

Issue 237063004: Intrinsify UserTag operations on all architectures (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 | « runtime/vm/intrinsifier.h ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intrinsifier.cc
diff --git a/runtime/vm/intrinsifier.cc b/runtime/vm/intrinsifier.cc
index 993fe06ebe9d879731636d4ecd69728dc10b8b18..6c6f03a90b42c241ed9338db6a832b0e7dbceacb 100644
--- a/runtime/vm/intrinsifier.cc
+++ b/runtime/vm/intrinsifier.cc
@@ -125,6 +125,7 @@ void Intrinsifier::InitializeState() {
// Set up all core lib functions that can be intrisified.
lib = Library::CoreLibrary();
+ ASSERT(!lib.IsNull());
CORE_LIB_INTRINSIC_LIST(SETUP_FUNCTION);
// Integer intrinsics are in the core library, but we don't want to intrinsify
@@ -135,12 +136,19 @@ void Intrinsifier::InitializeState() {
// Set up all math lib functions that can be intrisified.
lib = Library::MathLibrary();
+ ASSERT(!lib.IsNull());
MATH_LIB_INTRINSIC_LIST(SETUP_FUNCTION);
// Set up all dart:typed_data lib functions that can be intrisified.
lib = Library::TypedDataLibrary();
+ ASSERT(!lib.IsNull());
TYPED_DATA_LIB_INTRINSIC_LIST(SETUP_FUNCTION);
+ // Setup all dart:profiler lib functions that can be intrinsified.
+ lib = Library::ProfilerLibrary();
+ ASSERT(!lib.IsNull());
+ PROFILER_LIB_INTRINSIC_LIST(SETUP_FUNCTION);
+
#undef SETUP_FUNCTION
}
@@ -172,6 +180,8 @@ void Intrinsifier::Intrinsify(const Function& function, Assembler* assembler) {
TYPED_DATA_LIB_INTRINSIC_LIST(FIND_INTRINSICS);
} else if (lib.raw() == Library::MathLibrary()) {
MATH_LIB_INTRINSIC_LIST(FIND_INTRINSICS);
+ } else if (lib.raw() == Library::ProfilerLibrary()) {
+ PROFILER_LIB_INTRINSIC_LIST(FIND_INTRINSICS);
}
#undef FIND_INTRINSICS
}
« no previous file with comments | « runtime/vm/intrinsifier.h ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698