| 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 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 void PropertyICCompiler::GenerateRuntimeSetProperty( | 15 void PropertyICCompiler::GenerateRuntimeSetProperty( |
| 16 MacroAssembler* masm, LanguageMode language_mode) { | 16 MacroAssembler* masm, LanguageMode language_mode) { |
| 17 ASM_LOCATION("PropertyICCompiler::GenerateRuntimeSetProperty"); | 17 ASM_LOCATION("PropertyICCompiler::GenerateRuntimeSetProperty"); |
| 18 | 18 |
| 19 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), | 19 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), |
| 20 StoreDescriptor::ValueRegister()); | 20 StoreDescriptor::ValueRegister()); |
| 21 | 21 |
| 22 __ Mov(x10, Smi::FromInt(language_mode)); | 22 __ Mov(x10, Smi::FromInt(language_mode)); |
| 23 __ Push(x10); | 23 __ Push(x10); |
| 24 | 24 |
| 25 // Do tail-call to runtime routine. | 25 // Do tail-call to runtime routine. |
| 26 __ TailCallRuntime(Runtime::kSetProperty, 4); | 26 __ TailCallRuntime(Runtime::kSetProperty); |
| 27 } | 27 } |
| 28 | 28 |
| 29 #undef __ | 29 #undef __ |
| 30 } // namespace internal | 30 } // namespace internal |
| 31 } // namespace v8 | 31 } // namespace v8 |
| 32 | 32 |
| 33 #endif // V8_TARGET_ARCH_ARM64 | 33 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |