Index: src/ic/x64/handler-compiler-x64.cc |
diff --git a/src/ic/x64/handler-compiler-x64.cc b/src/ic/x64/handler-compiler-x64.cc |
index 348f79cb21df0b22cd80e3d41c39da6fe8b4df85..5c64288362bc24358c067305ae6e61b21dbb2ba8 100644 |
--- a/src/ic/x64/handler-compiler-x64.cc |
+++ b/src/ic/x64/handler-compiler-x64.cc |
@@ -180,7 +180,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 { |
@@ -220,12 +220,12 @@ 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()); |
- Factory* factory = masm->isolate()->factory(); |
- Handle<WeakCell> weak_cell = 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); |
__ Cmp(FieldOperand(scratch, PropertyCell::kValueOffset), |
- factory->the_hole_value()); |
+ isolate->factory()->the_hole_value()); |
__ j(not_equal, miss); |
} |
@@ -575,7 +575,7 @@ void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { |
void NamedLoadHandlerCompiler::GenerateLoadInterceptorWithFollowup( |
LookupIterator* it, Register holder_reg) { |
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. |
@@ -637,7 +637,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())); |
__ PopReturnAddressTo(scratch2()); |
PushInterceptorArguments(masm(), receiver(), holder_reg, this->name(), |
holder()); |
@@ -657,7 +657,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback( |
__ Push(holder_reg); |
// 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()) { |
__ Push(callback); |
} else { |
Handle<WeakCell> cell = isolate()->factory()->NewWeakCell(callback); |