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

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

Issue 1168093002: [strong] Implement strong mode restrictions on property access (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 6 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/ic-state.h ('k') | src/ic/mips/ic-mips.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
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"
11 #include "src/ic/ic.h" 11 #include "src/ic/ic.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 #define __ ACCESS_MASM(masm) 16 #define __ ACCESS_MASM(masm)
17 17
18 18
19 void NamedLoadHandlerCompiler::GenerateSlow(MacroAssembler* masm) {
20 // Push receiver and key for runtime call.
21 __ Push(LoadDescriptor::ReceiverRegister(), LoadDescriptor::NameRegister());
22
23 // The slow case calls into the runtime to complete the store without causing
24 // an IC miss that would otherwise cause a transition to the generic stub.
25 ExternalReference ref =
26 ExternalReference(IC_Utility(IC::kLoadIC_Slow), masm->isolate());
27 __ TailCallExternalReference(ref, 2, 1);
28 }
29
30
31 void ElementHandlerCompiler::GenerateLoadSlow(MacroAssembler* masm) {
32 // Push receiver and key for runtime call.
33 __ Push(LoadDescriptor::ReceiverRegister(), LoadDescriptor::NameRegister());
34
35 // The slow case calls into the runtime to complete the store without causing
36 // an IC miss that would otherwise cause a transition to the generic stub.
37 ExternalReference ref =
38 ExternalReference(IC_Utility(IC::kKeyedLoadIC_Slow), masm->isolate());
39 __ TailCallExternalReference(ref, 2, 1);
40 }
41
42
19 void NamedLoadHandlerCompiler::GenerateLoadViaGetter( 43 void NamedLoadHandlerCompiler::GenerateLoadViaGetter(
20 MacroAssembler* masm, Handle<Map> map, Register receiver, Register holder, 44 MacroAssembler* masm, Handle<Map> map, Register receiver, Register holder,
21 int accessor_index, int expected_arguments, Register scratch) { 45 int accessor_index, int expected_arguments, Register scratch) {
22 // ----------- S t a t e ------------- 46 // ----------- S t a t e -------------
23 // -- a0 : receiver 47 // -- a0 : receiver
24 // -- a2 : name 48 // -- a2 : name
25 // -- ra : return address 49 // -- ra : return address
26 // ----------------------------------- 50 // -----------------------------------
27 { 51 {
28 FrameScope scope(masm, StackFrame::INTERNAL); 52 FrameScope scope(masm, StackFrame::INTERNAL);
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 // Return the generated code. 799 // Return the generated code.
776 return GetCode(kind(), Code::NORMAL, name); 800 return GetCode(kind(), Code::NORMAL, name);
777 } 801 }
778 802
779 803
780 #undef __ 804 #undef __
781 } // namespace internal 805 } // namespace internal
782 } // namespace v8 806 } // namespace v8
783 807
784 #endif // V8_TARGET_ARCH_MIPS 808 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic/ic-state.h ('k') | src/ic/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698