1 // Copyright 2015 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
5 #include "src/v8.h"
6
7 #if V8_TARGET_ARCH_S390
8
9 #include "src/ic/access-compiler.h"
10
11 namespace v8 {
12 namespace internal {
13
14 #define __ ACCESS_MASM(masm)
15
GenerateTailCall(MacroAssembler * masm,Handle<Code> code)16 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm,
17 Handle<Code> code) {
18 __ Jump(code, RelocInfo::CODE_TARGET);
19 }
20
InitializePlatformSpecific(AccessCompilerData * data)21 void PropertyAccessCompiler::InitializePlatformSpecific(
22 AccessCompilerData* data) {
23 Register receiver = LoadDescriptor::ReceiverRegister();
24 Register name = LoadDescriptor::NameRegister();
25
26 // Load calling convention.
27 // receiver, name, scratch1, scratch2, scratch3.
28 Register load_registers[] = {receiver, name, r5, r2, r6};
29
30 // Store calling convention.
31 // receiver, name, scratch1, scratch2.
32 Register store_registers[] = {receiver, name, r5, r6};
33
34 data->Initialize(arraysize(load_registers), load_registers,
35 arraysize(store_registers), store_registers);
36 }
37
38 #undef __
39 } // namespace internal
40 } // namespace v8
41
42 #endif // V8_TARGET_ARCH_S390
43