Chromium Code Reviews| Index: runtime/vm/intermediate_language.cc |
| diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc |
| index 788f57a018e669c70b0662b0f494ca5d53eced87..7b8c6c8765a6c9702e00801c2d005a0d300a562f 100644 |
| --- a/runtime/vm/intermediate_language.cc |
| +++ b/runtime/vm/intermediate_language.cc |
| @@ -37,6 +37,13 @@ DEFINE_FLAG(bool, unbox_numeric_fields, true, |
| "Support unboxed double and float32x4 fields."); |
| DECLARE_FLAG(bool, eliminate_type_checks); |
| + |
|
Florian Schneider
2016/02/26 18:39:15
#ifdef DEBUG
also here?
srdjan
2016/02/26 18:43:43
Done.
|
| +void Instruction::CheckField(const Field& field) const { |
| + ASSERT(field.IsZoneHandle()); |
| + ASSERT(!Compiler::IsBackgroundCompilation() || !field.IsOriginal()); |
| +} |
| + |
|
Florian Schneider
2016/02/26 18:39:15
#endif
srdjan
2016/02/26 18:43:43
Done.
|
| + |
| Definition::Definition(intptr_t deopt_id) |
| : Instruction(deopt_id), |
| range_(NULL), |
| @@ -406,7 +413,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; |
| } |