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

Side by Side Diff: src/ic/x64/ic-compiler-x64.cc

Issue 894683003: Introduce LanguageMode, drop StrictMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased (w/ conflicts) 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/ic-inl.h ('k') | src/ic/x64/ic-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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/ic/ic-compiler.h" 10 #include "src/ic/ic-compiler.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 14
15 #define __ ACCESS_MASM(masm) 15 #define __ ACCESS_MASM(masm)
16 16
17 17
18 void PropertyICCompiler::GenerateRuntimeSetProperty(MacroAssembler* masm, 18 void PropertyICCompiler::GenerateRuntimeSetProperty(
19 StrictMode strict_mode) { 19 MacroAssembler* masm, LanguageMode language_mode) {
20 // Return address is on the stack. 20 // Return address is on the stack.
21 DCHECK(!rbx.is(StoreDescriptor::ReceiverRegister()) && 21 DCHECK(!rbx.is(StoreDescriptor::ReceiverRegister()) &&
22 !rbx.is(StoreDescriptor::NameRegister()) && 22 !rbx.is(StoreDescriptor::NameRegister()) &&
23 !rbx.is(StoreDescriptor::ValueRegister())); 23 !rbx.is(StoreDescriptor::ValueRegister()));
24 24
25 __ PopReturnAddressTo(rbx); 25 __ PopReturnAddressTo(rbx);
26 __ Push(StoreDescriptor::ReceiverRegister()); 26 __ Push(StoreDescriptor::ReceiverRegister());
27 __ Push(StoreDescriptor::NameRegister()); 27 __ Push(StoreDescriptor::NameRegister());
28 __ Push(StoreDescriptor::ValueRegister()); 28 __ Push(StoreDescriptor::ValueRegister());
29 __ Push(Smi::FromInt(strict_mode)); 29 __ Push(Smi::FromInt(language_mode));
30 __ PushReturnAddressFrom(rbx); 30 __ PushReturnAddressFrom(rbx);
31 31
32 // Do tail-call to runtime routine. 32 // Do tail-call to runtime routine.
33 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); 33 __ TailCallRuntime(Runtime::kSetProperty, 4, 1);
34 } 34 }
35 35
36 36
37 #undef __ 37 #undef __
38 #define __ ACCESS_MASM(masm()) 38 #define __ ACCESS_MASM(masm())
39 39
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 number_of_handled_maps > 1 ? POLYMORPHIC : MONOMORPHIC; 134 number_of_handled_maps > 1 ? POLYMORPHIC : MONOMORPHIC;
135 return GetCode(kind(), type, name, state); 135 return GetCode(kind(), type, name, state);
136 } 136 }
137 137
138 138
139 #undef __ 139 #undef __
140 } 140 }
141 } // namespace v8::internal 141 } // namespace v8::internal
142 142
143 #endif // V8_TARGET_ARCH_X64 143 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ic/ic-inl.h ('k') | src/ic/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698