Index: src/ic/arm64/handler-compiler-arm64.cc |
diff --git a/src/ic/arm64/handler-compiler-arm64.cc b/src/ic/arm64/handler-compiler-arm64.cc |
index 27eafec80085743765e18908f96795bdafb38d06..1126beb265d432bede438333f568b1ccae5d4362 100644 |
--- a/src/ic/arm64/handler-compiler-arm64.cc |
+++ b/src/ic/arm64/handler-compiler-arm64.cc |
@@ -110,8 +110,9 @@ void PropertyHandlerCompiler::GenerateCheckPropertyCell( |
MacroAssembler* masm, Handle<JSGlobalObject> global, Handle<Name> name, |
Register scratch, Label* miss) { |
Handle<PropertyCell> cell = JSGlobalObject::EnsurePropertyCell(global, name); |
- DCHECK(cell->value()->IsTheHole()); |
- Handle<WeakCell> weak_cell = masm->isolate()->factory()->NewWeakCell(cell); |
+ Isolate* isolate = masm->isolate(); |
+ DCHECK(cell->value()->IsTheHole(isolate)); |
+ Handle<WeakCell> weak_cell = isolate->factory()->NewWeakCell(cell); |
__ LoadWeakValue(scratch, weak_cell, miss); |
__ Ldr(scratch, FieldMemOperand(scratch, PropertyCell::kValueOffset)); |
__ JumpIfNotRoot(scratch, Heap::kTheHoleValueRootIndex, miss); |
@@ -197,7 +198,7 @@ void PropertyHandlerCompiler::GenerateApiAccessorCall( |
Handle<CallHandlerInfo> api_call_info = optimization.api_call_info(); |
bool call_data_undefined = false; |
// Put call data in place. |
- if (api_call_info->data()->IsUndefined()) { |
+ if (api_call_info->data()->IsUndefined(isolate)) { |
call_data_undefined = true; |
__ LoadRoot(data, Heap::kUndefinedValueRootIndex); |
} else { |
@@ -605,7 +606,7 @@ void NamedLoadHandlerCompiler::GenerateLoadInterceptorWithFollowup( |
DCHECK(!AreAliased(receiver(), this->name(), scratch1(), scratch2(), |
scratch3())); |
DCHECK(holder()->HasNamedInterceptor()); |
- DCHECK(!holder()->GetNamedInterceptor()->getter()->IsUndefined()); |
+ DCHECK(!holder()->GetNamedInterceptor()->getter()->IsUndefined(isolate())); |
// Compile the interceptor call, followed by inline code to load the |
// property from further up the prototype chain if the call fails. |
@@ -664,7 +665,7 @@ void NamedLoadHandlerCompiler::GenerateLoadInterceptorWithFollowup( |
void NamedLoadHandlerCompiler::GenerateLoadInterceptor(Register holder_reg) { |
// Call the runtime system to load the interceptor. |
DCHECK(holder()->HasNamedInterceptor()); |
- DCHECK(!holder()->GetNamedInterceptor()->getter()->IsUndefined()); |
+ DCHECK(!holder()->GetNamedInterceptor()->getter()->IsUndefined(isolate())); |
PushInterceptorArguments(masm(), receiver(), holder_reg, this->name(), |
holder()); |
@@ -686,7 +687,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback( |
DCHECK(!AreAliased(holder_reg, scratch1(), scratch2(), value())); |
// If the callback cannot leak, then push the callback directly, |
// otherwise wrap it in a weak cell. |
- if (callback->data()->IsUndefined() || callback->data()->IsSmi()) { |
+ if (callback->data()->IsUndefined(isolate()) || callback->data()->IsSmi()) { |
__ Mov(scratch1(), Operand(callback)); |
} else { |
Handle<WeakCell> cell = isolate()->factory()->NewWeakCell(callback); |