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

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

Issue 1199983002: [strong] Implement strong property access semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add TODOs Created 5 years, 5 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/x64/ic-x64.cc ('k') | src/ic/x87/ic-x87.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X87 7 #if V8_TARGET_ARCH_X87
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 ElementHandlerCompiler::GenerateLoadSlow(MacroAssembler* masm) {
20 // Return address is on the stack.
21 LoadIC_PushArgs(masm);
22
23 // Do tail-call to runtime routine.
24 ExternalReference ref(IC_Utility(IC::kKeyedLoadIC_Slow), masm->isolate());
25 __ TailCallExternalReference(ref, 2, 1);
26 }
27
28
19 void NamedLoadHandlerCompiler::GenerateLoadViaGetter( 29 void NamedLoadHandlerCompiler::GenerateLoadViaGetter(
20 MacroAssembler* masm, Handle<Map> map, Register receiver, Register holder, 30 MacroAssembler* masm, Handle<Map> map, Register receiver, Register holder,
21 int accessor_index, int expected_arguments, Register scratch) { 31 int accessor_index, int expected_arguments, Register scratch) {
22 { 32 {
23 FrameScope scope(masm, StackFrame::INTERNAL); 33 FrameScope scope(masm, StackFrame::INTERNAL);
24 34
25 if (accessor_index >= 0) { 35 if (accessor_index >= 0) {
26 DCHECK(!holder.is(scratch)); 36 DCHECK(!holder.is(scratch));
27 DCHECK(!receiver.is(scratch)); 37 DCHECK(!receiver.is(scratch));
28 // Call the JavaScript getter with the receiver on the stack. 38 // Call the JavaScript getter with the receiver on the stack.
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 // Return the generated code. 815 // Return the generated code.
806 return GetCode(kind(), Code::NORMAL, name); 816 return GetCode(kind(), Code::NORMAL, name);
807 } 817 }
808 818
809 819
810 #undef __ 820 #undef __
811 } // namespace internal 821 } // namespace internal
812 } // namespace v8 822 } // namespace v8
813 823
814 #endif // V8_TARGET_ARCH_X87 824 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/ic/x64/ic-x64.cc ('k') | src/ic/x87/ic-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698