MIPS: Fix debug mode related porting mistakes.
authorpalfia@homejinni.com <palfia@homejinni.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 11 Mar 2013 09:56:51 +0000 (09:56 +0000)
committerpalfia@homejinni.com <palfia@homejinni.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 11 Mar 2013 09:56:51 +0000 (09:56 +0000)
This commit fixes bugs in commit r13874 and in r13876.

BUG=

Review URL: https://codereview.chromium.org/12454010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13892 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/mips/assembler-mips.h
src/mips/stub-cache-mips.cc

index 1177181..e6c9e76 100644 (file)
@@ -413,6 +413,11 @@ class CpuFeatures : public AllStatic {
             (static_cast<uint64_t>(1) << f)) != 0;
   }
 
+  static bool IsSafeForSnapshot(CpuFeature f) {
+    return (IsSupported(f) &&
+            (!Serializer::enabled() || !IsFoundByRuntimeProbingOnly(f)));
+  }
+
  private:
 #ifdef DEBUG
   static bool initialized_;
index 886f52b..4d58c75 100644 (file)
@@ -891,7 +891,7 @@ class CallInterceptorCompiler BASE_EMBEDDED {
                       Register scratch1,
                       Register scratch2,
                       Register scratch3,
-                      Handle<String> name,
+                      Handle<Name> name,
                       Handle<JSObject> interceptor_holder,
                       Label* miss_label) {
     Register holder =
@@ -2650,7 +2650,7 @@ Handle<Code> StoreStubCompiler::CompileStoreField(Handle<JSObject> object,
                      a1, a2, a3, t0,
                      &miss);
   __ bind(&miss);
-  __ li(a2, Operand(Handle<String>(name)));  // Restore name.
+  __ li(a2, Operand(Handle<Name>(name)));  // Restore name.
   Handle<Code> ic = masm()->isolate()->builtins()->Builtins::StoreIC_Miss();
   __ Jump(ic, RelocInfo::CODE_TARGET);