Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/ic/mips64/handler-compiler-mips64.cc

Issue 881783003: Do not embedd store callback in handler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: x Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ic/mips/handler-compiler-mips.cc ('k') | src/ic/x64/handler-compiler-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/ic/call-optimization.h" 9 #include "src/ic/call-optimization.h"
10 #include "src/ic/handler-compiler.h" 10 #include "src/ic/handler-compiler.h"
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 holder()); 660 holder());
661 661
662 ExternalReference ref = ExternalReference( 662 ExternalReference ref = ExternalReference(
663 IC_Utility(IC::kLoadPropertyWithInterceptor), isolate()); 663 IC_Utility(IC::kLoadPropertyWithInterceptor), isolate());
664 __ TailCallExternalReference( 664 __ TailCallExternalReference(
665 ref, NamedLoadHandlerCompiler::kInterceptorArgsLength, 1); 665 ref, NamedLoadHandlerCompiler::kInterceptorArgsLength, 1);
666 } 666 }
667 667
668 668
669 Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback( 669 Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback(
670 Handle<JSObject> object, Handle<Name> name, 670 Handle<JSObject> object, Handle<Name> name, int accessor_index) {
671 Handle<ExecutableAccessorInfo> callback) {
672 Register holder_reg = Frontend(name); 671 Register holder_reg = Frontend(name);
673 672
674 __ Push(receiver(), holder_reg); // Receiver. 673 __ Push(receiver(), holder_reg); // Receiver.
675 __ li(at, Operand(callback)); // Callback info. 674 __ li(at, Operand(Smi::FromInt(accessor_index)));
676 __ push(at); 675 __ push(at);
677 __ li(at, Operand(name)); 676 __ li(at, Operand(name));
678 __ Push(at, value()); 677 __ Push(at, value());
679 678
680 // Do tail-call to the runtime system. 679 // Do tail-call to the runtime system.
681 ExternalReference store_callback_property = 680 ExternalReference store_callback_property =
682 ExternalReference(IC_Utility(IC::kStoreCallbackProperty), isolate()); 681 ExternalReference(IC_Utility(IC::kStoreCallbackProperty), isolate());
683 __ TailCallExternalReference(store_callback_property, 5, 1); 682 __ TailCallExternalReference(store_callback_property, 5, 1);
684 683
685 // Return the generated code. 684 // Return the generated code.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 // Return the generated code. 739 // Return the generated code.
741 return GetCode(kind(), Code::NORMAL, name); 740 return GetCode(kind(), Code::NORMAL, name);
742 } 741 }
743 742
744 743
745 #undef __ 744 #undef __
746 } 745 }
747 } // namespace v8::internal 746 } // namespace v8::internal
748 747
749 #endif // V8_TARGET_ARCH_MIPS64 748 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips/handler-compiler-mips.cc ('k') | src/ic/x64/handler-compiler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698