| Index: src/ic/mips64/handler-compiler-mips64.cc
|
| diff --git a/src/ic/mips64/handler-compiler-mips64.cc b/src/ic/mips64/handler-compiler-mips64.cc
|
| index d2eb2d1d8676b929d62941f5af7bb322bbd224b9..99ecbe2ff447bc90eb7ee2fe027732c2317b3f6c 100644
|
| --- a/src/ic/mips64/handler-compiler-mips64.cc
|
| +++ b/src/ic/mips64/handler-compiler-mips64.cc
|
| @@ -196,8 +196,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);
|
| __ ld(scratch, FieldMemOperand(scratch, PropertyCell::kValueOffset));
|
| __ LoadRoot(at, Heap::kTheHoleValueRootIndex);
|
| @@ -279,7 +280,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 {
|
| @@ -556,7 +557,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.
|
| @@ -615,7 +616,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());
|
|
|
| @@ -631,7 +632,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback(
|
| __ Push(receiver(), holder_reg); // Receiver.
|
| // 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()) {
|
| __ li(at, Operand(callback));
|
| } else {
|
| Handle<WeakCell> cell = isolate()->factory()->NewWeakCell(callback);
|
|
|