blob: c99c637ab1904dc46238e3e40046124123034b2b [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001// 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
3// found in the LICENSE file.
4
Ben Murdochb8a8cc12014-11-26 15:28:44 +00005#if V8_TARGET_ARCH_ARM64
6
7#include "src/ic/ic.h"
8#include "src/ic/ic-compiler.h"
9
10namespace v8 {
11namespace internal {
12
13#define __ ACCESS_MASM(masm)
14
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000015void PropertyICCompiler::GenerateRuntimeSetProperty(
16 MacroAssembler* masm, LanguageMode language_mode) {
Ben Murdochb8a8cc12014-11-26 15:28:44 +000017 ASM_LOCATION("PropertyICCompiler::GenerateRuntimeSetProperty");
18
19 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(),
20 StoreDescriptor::ValueRegister());
21
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000022 __ Mov(x10, Smi::FromInt(language_mode));
Ben Murdochb8a8cc12014-11-26 15:28:44 +000023 __ Push(x10);
24
25 // Do tail-call to runtime routine.
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000026 __ TailCallRuntime(Runtime::kSetProperty);
Ben Murdochb8a8cc12014-11-26 15:28:44 +000027}
28
Ben Murdochb8a8cc12014-11-26 15:28:44 +000029#undef __
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000030} // namespace internal
31} // namespace v8
Ben Murdochb8a8cc12014-11-26 15:28:44 +000032
33#endif // V8_TARGET_ARCH_ARM64