Index: src/mips/lithium-codegen-mips.h |
diff --git a/src/mips/fast-codegen-mips.cc b/src/mips/lithium-codegen-mips.h |
similarity index 63% |
rename from src/mips/fast-codegen-mips.cc |
rename to src/mips/lithium-codegen-mips.h |
index 186f9fadb6214f1217eac28e560ab2d7b57f1ade..345d912c4ea9c8f23de92c304eb566b8b2a6a21d 100644 |
--- a/src/mips/fast-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.h |
@@ -25,53 +25,41 @@ |
// (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" |
+#ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
+#define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
-#if defined(V8_TARGET_ARCH_MIPS) |
+#include "mips/lithium-mips.h" |
-#include "codegen-inl.h" |
-#include "fast-codegen.h" |
+#include "deoptimizer.h" |
+#include "safepoint-table.h" |
+#include "scopes.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; } |
- |
- |
-void FastCodeGenerator::Generate(CompilationInfo* info) { |
- UNIMPLEMENTED_MIPS(); |
-} |
- |
- |
-void FastCodeGenerator::EmitThisPropertyStore(Handle<String> name) { |
- UNIMPLEMENTED_MIPS(); |
-} |
- |
- |
-void FastCodeGenerator::EmitGlobalVariableLoad(Handle<Object> name) { |
- UNIMPLEMENTED_MIPS(); |
-} |
- |
- |
-void FastCodeGenerator::EmitThisPropertyLoad(Handle<String> name) { |
- UNIMPLEMENTED_MIPS(); |
-} |
- |
+// Forward declarations. |
+class LDeferredCode; |
-void FastCodeGenerator::EmitBitOr() { |
- UNIMPLEMENTED_MIPS(); |
-} |
+class LCodeGen BASE_EMBEDDED { |
+ public: |
+ LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) { } |
-#undef __ |
+ // Try to generate code for the entire chunk, but it may fail if the |
+ // chunk contains constructs we cannot handle. Returns true if the |
+ // code generation attempt succeeded. |
+ bool GenerateCode() { |
+ UNIMPLEMENTED(); |
+ return false; |
+ } |
+ // Finish the code by setting stack height, safepoint, and bailout |
+ // information on it. |
+ void FinishCode(Handle<Code> code) { UNIMPLEMENTED(); } |
+}; |
} } // namespace v8::internal |
-#endif // V8_TARGET_ARCH_MIPS |
+#endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |