access-compiler-ppc.cc 1.13 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#if V8_TARGET_ARCH_PPC

#include "src/ic/access-compiler.h"

namespace v8 {
namespace internal {

#define __ ACCESS_MASM(masm)


void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm,
                                              Handle<Code> code) {
  __ Jump(code, RelocInfo::CODE_TARGET);
}

20 21
void PropertyAccessCompiler::InitializePlatformSpecific(
    AccessCompilerData* data) {
22 23 24
  Register receiver = LoadDescriptor::ReceiverRegister();
  Register name = LoadDescriptor::NameRegister();

25 26 27
  // Load calling convention.
  // receiver, name, scratch1, scratch2, scratch3.
  Register load_registers[] = {receiver, name, r6, r3, r7};
28

29
  // Store calling convention.
30
  // receiver, name, scratch1, scratch2.
31
  Register store_registers[] = {receiver, name, r6, r7};
32

33 34 35
  data->Initialize(arraysize(load_registers), load_registers,
                   arraysize(store_registers), store_registers);
}
36 37

#undef __
38 39
}  // namespace internal
}  // namespace v8
40 41

#endif  // V8_TARGET_ARCH_PPC