| Index: src/sh4/register-allocator-sh4-inl.h
|
| diff --git a/src/ia32/frames-ia32.cc b/src/sh4/register-allocator-sh4-inl.h
|
| similarity index 68%
|
| copy from src/ia32/frames-ia32.cc
|
| copy to src/sh4/register-allocator-sh4-inl.h
|
| index dd44f0ee5ff12dc7de0df1a33a544e6c19723934..dd138ee7748d49a5bfe93a83c4f66958898e17cc 100644
|
| --- a/src/ia32/frames-ia32.cc
|
| +++ b/src/sh4/register-allocator-sh4-inl.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
| +// Copyright 2011-2012 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -25,21 +25,42 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -#include "v8.h"
|
| -
|
| -#if defined(V8_TARGET_ARCH_IA32)
|
| +#ifndef V8_SH4_REGISTER_ALLOCATOR_SH4_INL_H_
|
| +#define V8_SH4_REGISTER_ALLOCATOR_SH4_INL_H_
|
|
|
| -#include "frames-inl.h"
|
| +#include "v8.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
|
|
| +// -------------------------------------------------------------------------
|
| +// RegisterAllocator implementation.
|
| +
|
| +bool RegisterAllocator::IsReserved(Register reg) {
|
| + UNIMPLEMENTED();
|
| +}
|
| +
|
| +
|
| +// The register allocator uses small integers to represent the
|
| +// non-reserved assembler registers. The mapping is:
|
| +
|
| +// eax <-> 0, ebx <-> 1, ecx <-> 2, edx <-> 3, edi <-> 4.
|
| +
|
| +int RegisterAllocator::ToNumber(Register reg) {
|
| + UNIMPLEMENTED();
|
| +}
|
| +
|
| +
|
| +Register RegisterAllocator::ToRegister(int num) {
|
| + UNIMPLEMENTED();
|
| +}
|
| +
|
|
|
| -Address ExitFrame::ComputeStackPointer(Address fp) {
|
| - return Memory::Address_at(fp + ExitFrameConstants::kSPOffset);
|
| +void RegisterAllocator::Initialize() {
|
| + UNIMPLEMENTED();
|
| }
|
|
|
|
|
| } } // namespace v8::internal
|
|
|
| -#endif // V8_TARGET_ARCH_IA32
|
| +#endif // V8_SH4_REGISTER_ALLOCATOR_SH4_INL_H_
|
|
|