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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 1745453002: More fixes for background compilation (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix release build Created 4 years, 10 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/intermediate_language.h ('k') | runtime/vm/jit_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index 788f57a018e669c70b0662b0f494ca5d53eced87..4f4032fce706c7db24ec99c1057b89e3c0d63174 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -37,6 +37,15 @@ DEFINE_FLAG(bool, unbox_numeric_fields, true,
"Support unboxed double and float32x4 fields.");
DECLARE_FLAG(bool, eliminate_type_checks);
+
+#if defined(DEBUG)
+void Instruction::CheckField(const Field& field) const {
+ ASSERT(field.IsZoneHandle());
+ ASSERT(!Compiler::IsBackgroundCompilation() || !field.IsOriginal());
+}
+#endif // DEBUG
+
+
Definition::Definition(intptr_t deopt_id)
: Instruction(deopt_id),
range_(NULL),
@@ -406,7 +415,7 @@ bool LoadStaticFieldInstr::AttributesEqual(Instruction* other) const {
const Field& LoadStaticFieldInstr::StaticField() const {
- Field& field = Field::Handle();
+ Field& field = Field::ZoneHandle();
field ^= field_value()->BoundConstant().raw();
return field;
}
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/jit_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698