blob: 318523199a206df64cf7a75c278fab6a2444d156 [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_ARM
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
15
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000016void PropertyICCompiler::GenerateRuntimeSetProperty(
17 MacroAssembler* masm, LanguageMode language_mode) {
Ben Murdochb8a8cc12014-11-26 15:28:44 +000018 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(),
19 StoreDescriptor::ValueRegister());
20
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000021 __ mov(r0, Operand(Smi::FromInt(language_mode)));
Ben Murdochb8a8cc12014-11-26 15:28:44 +000022 __ Push(r0);
23
24 // Do tail-call to runtime routine.
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000025 __ TailCallRuntime(Runtime::kSetProperty);
Ben Murdochb8a8cc12014-11-26 15:28:44 +000026}
27
28
29#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_ARM