Commit 6c17947f authored by palfia@homejinni.com's avatar palfia@homejinni.com

MIPS: Fix debug mode related porting mistakes.

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
parent e44d3b7a
...@@ -413,6 +413,11 @@ class CpuFeatures : public AllStatic { ...@@ -413,6 +413,11 @@ class CpuFeatures : public AllStatic {
(static_cast<uint64_t>(1) << f)) != 0; (static_cast<uint64_t>(1) << f)) != 0;
} }
static bool IsSafeForSnapshot(CpuFeature f) {
return (IsSupported(f) &&
(!Serializer::enabled() || !IsFoundByRuntimeProbingOnly(f)));
}
private: private:
#ifdef DEBUG #ifdef DEBUG
static bool initialized_; static bool initialized_;
......
...@@ -891,7 +891,7 @@ class CallInterceptorCompiler BASE_EMBEDDED { ...@@ -891,7 +891,7 @@ class CallInterceptorCompiler BASE_EMBEDDED {
Register scratch1, Register scratch1,
Register scratch2, Register scratch2,
Register scratch3, Register scratch3,
Handle<String> name, Handle<Name> name,
Handle<JSObject> interceptor_holder, Handle<JSObject> interceptor_holder,
Label* miss_label) { Label* miss_label) {
Register holder = Register holder =
...@@ -2650,7 +2650,7 @@ Handle<Code> StoreStubCompiler::CompileStoreField(Handle<JSObject> object, ...@@ -2650,7 +2650,7 @@ Handle<Code> StoreStubCompiler::CompileStoreField(Handle<JSObject> object,
a1, a2, a3, t0, a1, a2, a3, t0,
&miss); &miss);
__ bind(&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(); Handle<Code> ic = masm()->isolate()->builtins()->Builtins::StoreIC_Miss();
__ Jump(ic, RelocInfo::CODE_TARGET); __ Jump(ic, RelocInfo::CODE_TARGET);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment