Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 25ba16232aa5a7b70f19e86756bcd5809a590e58..677d600e6580dec3d893a75d97194c1327b38747 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -927,8 +927,7 @@ void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
Handle<FixedArray> literals = |
factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); |
- { ALLOW_HANDLE_DEREF(isolate(), |
- "copying a ZoneList of handles into a FixedArray"); |
+ { AllowDeferredHandleDereference copy_handles; |
for (int i = 0; i < deoptimization_literals_.length(); i++) { |
literals->set(i, *deoptimization_literals_[i]); |
} |
@@ -1519,7 +1518,7 @@ void LCodeGen::DoConstantD(LConstantD* instr) { |
void LCodeGen::DoConstantT(LConstantT* instr) { |
Handle<Object> value = instr->value(); |
- ALLOW_HANDLE_DEREF(isolate(), "smi check"); |
+ AllowDeferredHandleDereference smi_check; |
if (value->IsSmi()) { |
__ li(ToRegister(instr->result()), Operand(value)); |
} else { |
@@ -5022,7 +5021,7 @@ void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { |
void LCodeGen::DoCheckFunction(LCheckFunction* instr) { |
Register reg = ToRegister(instr->value()); |
Handle<JSFunction> target = instr->hydrogen()->target(); |
- ALLOW_HANDLE_DEREF(isolate(), "smi check"); |
+ AllowDeferredHandleDereference smi_check; |
if (isolate()->heap()->InNewSpace(*target)) { |
Register reg = ToRegister(instr->value()); |
Handle<JSGlobalPropertyCell> cell = |