OLD | NEW |
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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
6 | 6 |
7 #include "src/ic/ic.h" | 7 #include "src/ic/ic.h" |
8 #include "src/ic/ic-compiler.h" | 8 #include "src/ic/ic-compiler.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 #define __ ACCESS_MASM(masm) | 13 #define __ ACCESS_MASM(masm) |
14 | 14 |
15 | 15 |
16 void PropertyICCompiler::GenerateRuntimeSetProperty( | 16 void PropertyICCompiler::GenerateRuntimeSetProperty( |
17 MacroAssembler* masm, LanguageMode language_mode) { | 17 MacroAssembler* masm, LanguageMode language_mode) { |
18 __ mov(r0, Operand(Smi::FromInt(language_mode))); | 18 __ mov(r0, Operand(Smi::FromInt(language_mode))); |
19 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), | 19 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), |
20 StoreDescriptor::ValueRegister(), r0); | 20 StoreDescriptor::ValueRegister(), r0); |
21 | 21 |
22 // Do tail-call to runtime routine. | 22 // Do tail-call to runtime routine. |
23 __ TailCallRuntime(Runtime::kSetProperty, 4); | 23 __ TailCallRuntime(Runtime::kSetProperty); |
24 } | 24 } |
25 | 25 |
26 | 26 |
27 #undef __ | 27 #undef __ |
28 } // namespace internal | 28 } // namespace internal |
29 } // namespace v8 | 29 } // namespace v8 |
30 | 30 |
31 #endif // V8_TARGET_ARCH_PPC | 31 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |