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
This commit is contained in:
palfia@homejinni.com 2013-03-11 09:56:51 +00:00
parent e44d3b7a87
commit 6c17947f3c
2 changed files with 7 additions and 2 deletions

View 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_;

View 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);