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

Unified Diff: runtime/vm/stack_frame.cc

Issue 2960413002: Omit JIT compiler from precompiled runtime on ARM, ARM64 and IA32. (Closed)
Patch Set: Moved trace_irregexp flag to flag_list.h Created 3 years, 5 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/runtime_entry.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stack_frame.cc
diff --git a/runtime/vm/stack_frame.cc b/runtime/vm/stack_frame.cc
index 1e7ffd6e21771e67e90fe0069c71a4668c300643..6bb5bd153cdcdcd2ca477c0301aa8b4eabb00c78 100644
--- a/runtime/vm/stack_frame.cc
+++ b/runtime/vm/stack_frame.cc
@@ -511,6 +511,10 @@ InlinedFunctionsIterator::InlinedFunctionsIterator(const Code& code, uword pc)
ASSERT(code_.is_optimized());
ASSERT(pc_ != 0);
ASSERT(code.ContainsInstructionAt(pc));
+#if defined(DART_PRECOMPILED_RUNTIME)
+ ASSERT(deopt_info_.IsNull());
+ function_ = code_.function();
+#else
ICData::DeoptReasonId deopt_reason = ICData::kDeoptUnknown;
uint32_t deopt_flags = 0;
deopt_info_ = code_.GetDeoptInfoAtPc(pc, &deopt_reason, &deopt_flags);
@@ -529,6 +533,7 @@ InlinedFunctionsIterator::InlinedFunctionsIterator(const Code& code, uword pc)
object_table_ = code_.GetObjectPool();
Advance();
}
+#endif // defined(DART_PRECOMPILED_RUNTIME)
}
@@ -537,6 +542,11 @@ void InlinedFunctionsIterator::Advance() {
// functions if any and iterate over them.
ASSERT(!Done());
+#if defined(DART_PRECOMPILED_RUNTIME)
+ ASSERT(deopt_info_.IsNull());
+ SetDone();
+ return;
+#else
if (deopt_info_.IsNull()) {
SetDone();
return;
@@ -552,6 +562,7 @@ void InlinedFunctionsIterator::Advance() {
}
}
SetDone();
+#endif // defined(DART_PRECOMPILED_RUNTIME)
}
« no previous file with comments | « runtime/vm/runtime_entry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698