MIPS: Always use the LoadStubCompiler for Load handlers, also for keyedload handlers.

Port r22551 (0cc23b1)

BUG=
R=paul.lind@imgtec.com

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22570 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e999cf28
......@@ -995,13 +995,8 @@ void LoadStubCompiler::GenerateLoadField(Register reg,
FieldIndex field,
Representation representation) {
if (!reg.is(receiver())) __ mov(receiver(), reg);
if (kind() == Code::LOAD_IC) {
LoadFieldStub stub(isolate(), field);
GenerateTailCall(masm(), stub.GetCode());
} else {
KeyedLoadFieldStub stub(isolate(), field);
GenerateTailCall(masm(), stub.GetCode());
}
LoadFieldStub stub(isolate(), field);
GenerateTailCall(masm(), stub.GetCode());
}
......
......@@ -996,13 +996,8 @@ void LoadStubCompiler::GenerateLoadField(Register reg,
FieldIndex field,
Representation representation) {
if (!reg.is(receiver())) __ mov(receiver(), reg);
if (kind() == Code::LOAD_IC) {
LoadFieldStub stub(isolate(), field);
GenerateTailCall(masm(), stub.GetCode());
} else {
KeyedLoadFieldStub stub(isolate(), field);
GenerateTailCall(masm(), stub.GetCode());
}
LoadFieldStub stub(isolate(), field);
GenerateTailCall(masm(), stub.GetCode());
}
......
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