Reviewers: Yang,

Description:
Unbreak MIPS part a bit.


Please review this at http://codereview.chromium.org/11293250/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/mips/assembler-mips-inl.h
  M src/mips/builtins-mips.cc
  M src/mips/codegen-mips.cc
  M src/mips/lithium-mips.cc
  M src/mips/stub-cache-mips.cc


Index: src/mips/assembler-mips-inl.h
diff --git a/src/mips/assembler-mips-inl.h b/src/mips/assembler-mips-inl.h
index 3e726a754584432d4fce84452ee1a93101d51d7b..123e2928283e12700d4126f89422acbe3ac6f1b0 100644
--- a/src/mips/assembler-mips-inl.h
+++ b/src/mips/assembler-mips-inl.h
@@ -292,6 +292,17 @@ bool RelocInfo::IsPatchedDebugBreakSlotSequence() {
 }


+Code* RelocInfo::code_age_stub() {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+
+void RelocInfo::set_code_age_stub(Code* stub) {
+  UNIMPLEMENTED();
+}
+
+
 void RelocInfo::Visit(ObjectVisitor* visitor) {
   RelocInfo::Mode mode = rmode();
   if (mode == RelocInfo::EMBEDDED_OBJECT) {
Index: src/mips/builtins-mips.cc
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc
index 0342e6505daf986f6aa979d6e0ee5aba85419236..5a21230c91b460b49a264382019e37a87af68d05 100644
--- a/src/mips/builtins-mips.cc
+++ b/src/mips/builtins-mips.cc
@@ -1255,6 +1255,25 @@ void Builtins::Generate_LazyRecompile(MacroAssembler* masm) {
 }


+// Just a dummy for now, so snapshot generation works.
+static void GenerateMakeCodeYoungAgainCommon(MacroAssembler* masm) {
+  __ Ret();
+}
+
+
+#define DEFINE_CODE_AGE_BUILTIN_GENERATOR(C)                 \
+void Builtins::Generate_Make##C##CodeYoungAgainEvenMarking(  \
+    MacroAssembler* masm) {                                  \
+  GenerateMakeCodeYoungAgainCommon(masm);                    \
+}                                                            \
+void Builtins::Generate_Make##C##CodeYoungAgainOddMarking(   \
+    MacroAssembler* masm) {                                  \
+  GenerateMakeCodeYoungAgainCommon(masm);                    \
+}
+CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR)
+#undef DEFINE_CODE_AGE_BUILTIN_GENERATOR
+
+
 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm,
Deoptimizer::BailoutType type) {
   {
Index: src/mips/codegen-mips.cc
diff --git a/src/mips/codegen-mips.cc b/src/mips/codegen-mips.cc
index 44e0359e4445a3fe5d7dadbe3dda75859ad48f3d..412dbc54ee346f2ed25d462db2b0cf36581080ec 100644
--- a/src/mips/codegen-mips.cc
+++ b/src/mips/codegen-mips.cc
@@ -448,6 +448,30 @@ void StringCharLoadGenerator::Generate(MacroAssembler* masm,

 #undef __

+
+byte* Code::FindPlatformCodeAgeSequence() {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+
+bool Code::IsYoungSequence(byte* sequence) {
+  UNIMPLEMENTED();
+  return false;
+}
+
+
+void Code::GetCodeAgeAndParity(byte* sequence, Age* age,
+                               MarkingParity* parity) {
+}
+
+
+void Code::PatchPlatformCodeAge(byte* sequence,
+                                Code::Age age,
+                                MarkingParity parity) {
+  UNIMPLEMENTED();
+}
+
 } }  // namespace v8::internal

 #endif  // V8_TARGET_ARCH_MIPS
Index: src/mips/lithium-mips.cc
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
index b5eb128e27c9c0df240c8edcab5666eeaa168751..b7ba1fb3e753cacf4991c8480a41e4cc5b29406c 100644
--- a/src/mips/lithium-mips.cc
+++ b/src/mips/lithium-mips.cc
@@ -1099,6 +1099,11 @@ LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) {
 }


+LInstruction* LChunkBuilder::DoRor(HRor* instr) {
+  return DoShift(Token::ROR, instr);
+}
+
+
 LInstruction* LChunkBuilder::DoShr(HShr* instr) {
   return DoShift(Token::SHR, instr);
 }
Index: src/mips/stub-cache-mips.cc
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc
index 22e6174e9a5adaaa2dcb95307f91dc08db31919a..563e302f5d9d2a5da53e087a488b0f4ca67b7571 100644
--- a/src/mips/stub-cache-mips.cc
+++ b/src/mips/stub-cache-mips.cc
@@ -1554,7 +1554,7 @@ void CallStubCompiler::GenerateMissBranch() {

 Handle<Code> CallStubCompiler::CompileCallField(Handle<JSObject> object,
                                                 Handle<JSObject> holder,
-                                                int index,
+                                                PropertyIndex index,
                                                 Handle<String> name) {
   // ----------- S t a t e -------------
   //  -- a2    : name
@@ -2920,7 +2920,7 @@ Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<String> name,

 Handle<Code> LoadStubCompiler::CompileLoadField(Handle<JSObject> object,
                                                 Handle<JSObject> holder,
-                                                int index,
+                                                PropertyIndex index,
                                                 Handle<String> name) {
   // ----------- S t a t e -------------
   //  -- a0    : receiver
@@ -3111,7 +3111,7 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal(
 Handle<Code> KeyedLoadStubCompiler::CompileLoadField(Handle<String> name,
Handle<JSObject> receiver, Handle<JSObject> holder,
-                                                     int index) {
+                                                     PropertyIndex index) {
   // ----------- S t a t e -------------
   //  -- ra    : return address
   //  -- a0    : key


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to