| Index: src/mips/deoptimizer-mips.cc
|
| diff --git a/src/mips/fast-codegen-mips.cc b/src/mips/deoptimizer-mips.cc
|
| similarity index 55%
|
| copy from src/mips/fast-codegen-mips.cc
|
| copy to src/mips/deoptimizer-mips.cc
|
| index 186f9fadb6214f1217eac28e560ab2d7b57f1ade..4b69859a4a396bc2963cc2e8263da98cd7b2e6ca 100644
|
| --- a/src/mips/fast-codegen-mips.cc
|
| +++ b/src/mips/deoptimizer-mips.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2010 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 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:
|
| @@ -27,51 +27,65 @@
|
|
|
| #include "v8.h"
|
|
|
| -#if defined(V8_TARGET_ARCH_MIPS)
|
| +#include "codegen.h"
|
| +#include "deoptimizer.h"
|
| +#include "full-codegen.h"
|
| +#include "safepoint-table.h"
|
|
|
| -#include "codegen-inl.h"
|
| -#include "fast-codegen.h"
|
| +// Note: this file was taken from the X64 version. ARM has a partially working
|
| +// lithium implementation, but for now it is not ported to mips.
|
|
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -#define __ ACCESS_MASM(masm_)
|
|
|
| -Register FastCodeGenerator::accumulator0() { return no_reg; }
|
| -Register FastCodeGenerator::accumulator1() { return no_reg; }
|
| -Register FastCodeGenerator::scratch0() { return no_reg; }
|
| -Register FastCodeGenerator::scratch1() { return no_reg; }
|
| -Register FastCodeGenerator::receiver_reg() { return no_reg; }
|
| -Register FastCodeGenerator::context_reg() { return no_reg; }
|
| +int Deoptimizer::table_entry_size_ = 10;
|
|
|
|
|
| -void FastCodeGenerator::Generate(CompilationInfo* info) {
|
| - UNIMPLEMENTED_MIPS();
|
| +int Deoptimizer::patch_size() {
|
| + const int kCallInstructionSizeInWords = 3;
|
| + return kCallInstructionSizeInWords * Assembler::kInstrSize;
|
| }
|
|
|
|
|
| -void FastCodeGenerator::EmitThisPropertyStore(Handle<String> name) {
|
| - UNIMPLEMENTED_MIPS();
|
| +void Deoptimizer::DeoptimizeFunction(JSFunction* function) {
|
| + UNIMPLEMENTED();
|
| }
|
|
|
|
|
| -void FastCodeGenerator::EmitGlobalVariableLoad(Handle<Object> name) {
|
| - UNIMPLEMENTED_MIPS();
|
| +void Deoptimizer::PatchStackCheckCodeAt(Address pc_after,
|
| + Code* check_code,
|
| + Code* replacement_code) {
|
| + UNIMPLEMENTED();
|
| }
|
|
|
|
|
| -void FastCodeGenerator::EmitThisPropertyLoad(Handle<String> name) {
|
| - UNIMPLEMENTED_MIPS();
|
| +void Deoptimizer::RevertStackCheckCodeAt(Address pc_after,
|
| + Code* check_code,
|
| + Code* replacement_code) {
|
| + UNIMPLEMENTED();
|
| }
|
|
|
|
|
| -void FastCodeGenerator::EmitBitOr() {
|
| - UNIMPLEMENTED_MIPS();
|
| +void Deoptimizer::DoComputeOsrOutputFrame() {
|
| + UNIMPLEMENTED();
|
| }
|
|
|
| -#undef __
|
|
|
| +void Deoptimizer::DoComputeFrame(TranslationIterator* iterator,
|
| + int frame_index) {
|
| + UNIMPLEMENTED();
|
| +}
|
| +
|
| +
|
| +void Deoptimizer::EntryGenerator::Generate() {
|
| + UNIMPLEMENTED();
|
| +}
|
|
|
| -} } // namespace v8::internal
|
|
|
| -#endif // V8_TARGET_ARCH_MIPS
|
| +void Deoptimizer::TableEntryGenerator::GeneratePrologue() {
|
| + UNIMPLEMENTED();
|
| +}
|
| +
|
| +
|
| +} } // namespace v8::internal
|
|
|