Commit eec6ed57 authored by plind44@gmail.com's avatar plind44@gmail.com

MIPS: Turn Load/StoreGlobal into a handler.

Port r17550 (3e0015e)

BUG=
R=plind44@gmail.com

Review URL: https://codereview.chromium.org/60733010

Patch from Balazs Kilvady <kilvadyb@homejinni.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17573 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent bd146ae4
......@@ -3032,10 +3032,7 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal(
bool is_dont_delete) {
Label success, miss;
__ CheckMap(
receiver(), scratch1(), 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.
__ li(a3, Operand(cell));
......@@ -3056,7 +3053,7 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal(
__ mov(v0, t0);
// Return the generated code.
return GetICCode(kind(), Code::NORMAL, name);
return GetCode(kind(), Code::NORMAL, name);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment