diff options
Diffstat (limited to 'deps/v8/src/mips/assembler-mips.cc')
-rw-r--r-- | deps/v8/src/mips/assembler-mips.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/deps/v8/src/mips/assembler-mips.cc b/deps/v8/src/mips/assembler-mips.cc index fcf49f110..345b64245 100644 --- a/deps/v8/src/mips/assembler-mips.cc +++ b/deps/v8/src/mips/assembler-mips.cc @@ -126,7 +126,8 @@ void CpuFeatures::Probe() { supported_ |= static_cast<uint64_t>(1) << FPU; #else // Probe for additional features not already known to be available. - if (OS::MipsCpuHasFeature(FPU)) { + CPU cpu; + if (cpu.has_fpu()) { // This implementation also sets the FPU flags if // runtime detection of FPU returns true. supported_ |= static_cast<uint64_t>(1) << FPU; @@ -237,15 +238,12 @@ void RelocInfo::PatchCodeWithCall(Address target, int guard_bytes) { // See assembler-mips-inl.h for inlined constructors. Operand::Operand(Handle<Object> handle) { -#ifdef DEBUG - Isolate* isolate = Isolate::Current(); -#endif AllowDeferredHandleDereference using_raw_address; rm_ = no_reg; // Verify all Objects referred by code are NOT in new space. Object* obj = *handle; - ASSERT(!isolate->heap()->InNewSpace(obj)); if (obj->IsHeapObject()) { + ASSERT(!HeapObject::cast(obj)->GetHeap()->InNewSpace(obj)); imm32_ = reinterpret_cast<intptr_t>(handle.location()); rmode_ = RelocInfo::EMBEDDED_OBJECT; } else { @@ -2203,8 +2201,7 @@ void Assembler::set_target_address_at(Address pc, Address target) { Instr instr3 = instr_at(pc + 2 * kInstrSize); uint32_t ipc = reinterpret_cast<uint32_t>(pc + 3 * kInstrSize); - bool in_range = (ipc ^ static_cast<uint32_t>(itarget) >> - (kImm26Bits + kImmFieldShift)) == 0; + bool in_range = ((ipc ^ itarget) >> (kImm26Bits + kImmFieldShift)) == 0; uint32_t target_field = static_cast<uint32_t>(itarget & kJumpAddrMask) >> kImmFieldShift; bool patched_jump = false; |