| Index: src/x64/stub-cache-x64.cc
|
| diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc
|
| index 94650fd49a28483023572ca79a94d9b4adf4a873..252ce8e6dd5b38998e6d2628fbcd04a13c9d527d 100644
|
| --- a/src/x64/stub-cache-x64.cc
|
| +++ b/src/x64/stub-cache-x64.cc
|
| @@ -3066,10 +3066,7 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal(
|
| // TODO(verwaest): Directly store to rax. Currently we cannot do this, since
|
| // rax is used as receiver(), which we would otherwise clobber before a
|
| // potential miss.
|
| -
|
| - __ CheckMap(receiver(), Handle<Map>(object->map()), &miss, DO_SMI_CHECK);
|
| - HandlerFrontendHeader(
|
| - object, receiver(), Handle<JSObject>::cast(global), name, &miss);
|
| + HandlerFrontendHeader(object, receiver(), global, name, &miss);
|
|
|
| // Get the value from the cell.
|
| __ Move(rbx, cell);
|
| @@ -3093,7 +3090,7 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal(
|
| __ ret(0);
|
|
|
| // Return the generated code.
|
| - return GetICCode(kind(), Code::NORMAL, name);
|
| + return GetCode(kind(), Code::NORMAL, name);
|
| }
|
|
|
|
|
|
|