Commit 18feab95 authored by palfia@homejinni.com's avatar palfia@homejinni.com

MIPS: Only use Type for compiling load handlers.

Port r18025 (74fc739)

BUG=

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

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18032 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent f81d25e3
...@@ -1298,14 +1298,14 @@ void StoreStubCompiler::HandlerFrontendFooter(Handle<Name> name, Label* miss) { ...@@ -1298,14 +1298,14 @@ void StoreStubCompiler::HandlerFrontendFooter(Handle<Name> name, Label* miss) {
Register LoadStubCompiler::CallbackHandlerFrontend( Register LoadStubCompiler::CallbackHandlerFrontend(
Handle<Object> object, Handle<Type> type,
Register object_reg, Register object_reg,
Handle<JSObject> holder, Handle<JSObject> holder,
Handle<Name> name, Handle<Name> name,
Handle<Object> callback) { Handle<Object> callback) {
Label miss; Label miss;
Register reg = HandlerFrontendHeader(object, object_reg, holder, name, &miss); Register reg = HandlerFrontendHeader(type, object_reg, holder, name, &miss);
if (!holder->HasFastProperties() && !holder->IsJSGlobalObject()) { if (!holder->HasFastProperties() && !holder->IsJSGlobalObject()) {
ASSERT(!reg.is(scratch2())); ASSERT(!reg.is(scratch2()));
...@@ -2815,7 +2815,8 @@ Handle<Code> StoreStubCompiler::CompileStoreCallback( ...@@ -2815,7 +2815,8 @@ Handle<Code> StoreStubCompiler::CompileStoreCallback(
Handle<JSObject> holder, Handle<JSObject> holder,
Handle<Name> name, Handle<Name> name,
Handle<ExecutableAccessorInfo> callback) { Handle<ExecutableAccessorInfo> callback) {
HandlerFrontend(object, receiver(), holder, name); HandlerFrontend(IC::CurrentTypeOf(object, isolate()),
receiver(), holder, name);
// Stub never generated for non-global objects that require access // Stub never generated for non-global objects that require access
// checks. // checks.
...@@ -2842,7 +2843,8 @@ Handle<Code> StoreStubCompiler::CompileStoreCallback( ...@@ -2842,7 +2843,8 @@ Handle<Code> StoreStubCompiler::CompileStoreCallback(
Handle<JSObject> holder, Handle<JSObject> holder,
Handle<Name> name, Handle<Name> name,
const CallOptimization& call_optimization) { const CallOptimization& call_optimization) {
HandlerFrontend(object, receiver(), holder, name); HandlerFrontend(IC::CurrentTypeOf(object, isolate()),
receiver(), holder, name);
Register values[] = { value() }; Register values[] = { value() };
GenerateFastApiCall( GenerateFastApiCall(
...@@ -2937,12 +2939,10 @@ Handle<Code> StoreStubCompiler::CompileStoreInterceptor( ...@@ -2937,12 +2939,10 @@ Handle<Code> StoreStubCompiler::CompileStoreInterceptor(
} }
Handle<Code> LoadStubCompiler::CompileLoadNonexistent( Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<Type> type,
Handle<Object> object, Handle<JSObject> last,
Handle<JSObject> last, Handle<Name> name) {
Handle<Name> name, NonexistentHandlerFrontend(type, last, name);
Handle<JSGlobalObject> global) {
NonexistentHandlerFrontend(object, last, name, global);
// Return undefined if maps of the full prototype chain is still the same. // Return undefined if maps of the full prototype chain is still the same.
__ LoadRoot(v0, Heap::kUndefinedValueRootIndex); __ LoadRoot(v0, Heap::kUndefinedValueRootIndex);
...@@ -3035,14 +3035,14 @@ void LoadStubCompiler::GenerateLoadViaGetter(MacroAssembler* masm, ...@@ -3035,14 +3035,14 @@ void LoadStubCompiler::GenerateLoadViaGetter(MacroAssembler* masm,
Handle<Code> LoadStubCompiler::CompileLoadGlobal( Handle<Code> LoadStubCompiler::CompileLoadGlobal(
Handle<Object> object, Handle<Type> type,
Handle<GlobalObject> global, Handle<GlobalObject> global,
Handle<PropertyCell> cell, Handle<PropertyCell> cell,
Handle<Name> name, Handle<Name> name,
bool is_dont_delete) { bool is_dont_delete) {
Label miss; Label miss;
HandlerFrontendHeader(object, receiver(), global, name, &miss); HandlerFrontendHeader(type, receiver(), global, name, &miss);
// Get the value from the cell. // Get the value from the cell.
__ li(a3, Operand(cell)); __ li(a3, Operand(cell));
......
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