Index: src/sh4/lithium-codegen-sh4.h |
diff --git a/src/arm/lithium-codegen-arm.h b/src/sh4/lithium-codegen-sh4.h |
similarity index 90% |
copy from src/arm/lithium-codegen-arm.h |
copy to src/sh4/lithium-codegen-sh4.h |
index 921285b0d228c8d023038e2422e9772d735135b3..85353fe34c3bcc73612be844339675dc92543fca 100644 |
--- a/src/arm/lithium-codegen-arm.h |
+++ b/src/sh4/lithium-codegen-sh4.h |
@@ -1,4 +1,4 @@ |
-// Copyright 2012 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,11 +25,11 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-#ifndef V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
-#define V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
+#ifndef V8_SH4_LITHIUM_CODEGEN_SH4_H_ |
+#define V8_SH4_LITHIUM_CODEGEN_SH4_H_ |
-#include "arm/lithium-arm.h" |
-#include "arm/lithium-gap-resolver-arm.h" |
+#include "sh4/lithium-sh4.h" |
+#include "sh4/lithium-gap-resolver-sh4.h" |
#include "deoptimizer.h" |
#include "safepoint-table.h" |
#include "scopes.h" |
@@ -179,8 +179,10 @@ class LCodeGen BASE_EMBEDDED { |
Scope* scope() const { return scope_; } |
HGraph* graph() const { return chunk_->graph(); } |
- Register scratch0() { return r9; } |
- DwVfpRegister double_scratch0() { return kScratchDoubleReg; } |
+ Register scratch0() { UNIMPLEMENTED(); |
+ return r9; } |
+ DwVfpRegister double_scratch0() { UNIMPLEMENTED(); |
+ return dr8; } |
int GetNextEmittedBlock(int block); |
LInstruction* GetNextInstruction(); |
@@ -213,19 +215,6 @@ class LCodeGen BASE_EMBEDDED { |
RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS |
}; |
- void CallCode( |
- Handle<Code> code, |
- RelocInfo::Mode mode, |
- LInstruction* instr, |
- TargetAddressStorageMode storage_mode = CAN_INLINE_TARGET_ADDRESS); |
- |
- void CallCodeGeneric( |
- Handle<Code> code, |
- RelocInfo::Mode mode, |
- LInstruction* instr, |
- SafepointMode safepoint_mode, |
- TargetAddressStorageMode storage_mode = CAN_INLINE_TARGET_ADDRESS); |
- |
void CallRuntime(const Runtime::Function* function, |
int num_arguments, |
LInstruction* instr); |
@@ -417,35 +406,11 @@ class LCodeGen BASE_EMBEDDED { |
PushSafepointRegistersScope(LCodeGen* codegen, |
Safepoint::Kind kind) |
: codegen_(codegen) { |
- ASSERT(codegen_->expected_safepoint_kind_ == Safepoint::kSimple); |
- codegen_->expected_safepoint_kind_ = kind; |
- |
- switch (codegen_->expected_safepoint_kind_) { |
- case Safepoint::kWithRegisters: |
- codegen_->masm_->PushSafepointRegisters(); |
- break; |
- case Safepoint::kWithRegistersAndDoubles: |
- codegen_->masm_->PushSafepointRegistersAndDoubles(); |
- break; |
- default: |
- UNREACHABLE(); |
- } |
+ UNIMPLEMENTED(); |
} |
~PushSafepointRegistersScope() { |
- Safepoint::Kind kind = codegen_->expected_safepoint_kind_; |
- ASSERT((kind & Safepoint::kWithRegisters) != 0); |
- switch (kind) { |
- case Safepoint::kWithRegisters: |
- codegen_->masm_->PopSafepointRegisters(); |
- break; |
- case Safepoint::kWithRegistersAndDoubles: |
- codegen_->masm_->PopSafepointRegistersAndDoubles(); |
- break; |
- default: |
- UNREACHABLE(); |
- } |
- codegen_->expected_safepoint_kind_ = Safepoint::kSimple; |
+ UNIMPLEMENTED(); |
} |
private: |
@@ -491,4 +456,4 @@ class LDeferredCode: public ZoneObject { |
} } // namespace v8::internal |
-#endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
+#endif // V8_SH4_LITHIUM_CODEGEN_SH4_H_ |