Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index 80fbc78e5b588a9b4cc45b5dff4eb440a61c8876..5549b50e284e789f597ce7251db0ca0c6db713ba 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -3151,9 +3151,7 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal( |
bool is_dont_delete) { |
Label success, 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. |
if (Serializer::enabled()) { |
__ mov(eax, Immediate(cell)); |
@@ -3180,7 +3178,7 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal( |
__ ret(0); |
// Return the generated code. |
- return GetICCode(kind(), Code::NORMAL, name); |
+ return GetCode(kind(), Code::NORMAL, name); |
} |