diff options
Diffstat (limited to 'deps/v8/src/arm64/simulator-arm64.cc')
-rw-r--r-- | deps/v8/src/arm64/simulator-arm64.cc | 45 |
1 files changed, 4 insertions, 41 deletions
diff --git a/deps/v8/src/arm64/simulator-arm64.cc b/deps/v8/src/arm64/simulator-arm64.cc index 231f4efd98..9881bae26b 100644 --- a/deps/v8/src/arm64/simulator-arm64.cc +++ b/deps/v8/src/arm64/simulator-arm64.cc @@ -231,8 +231,8 @@ void Simulator::CheckPCSComplianceAndRun() { isolate_->stack_guard()->AdjustStackLimitForSimulator(); #ifdef DEBUG - CHECK_EQ(kNumberOfCalleeSavedRegisters, kCalleeSaved.Count()); - CHECK_EQ(kNumberOfCalleeSavedVRegisters, kCalleeSavedV.Count()); + DCHECK_EQ(kNumberOfCalleeSavedRegisters, kCalleeSaved.Count()); + DCHECK_EQ(kNumberOfCalleeSavedVRegisters, kCalleeSavedV.Count()); int64_t saved_registers[kNumberOfCalleeSavedRegisters]; uint64_t saved_fpregisters[kNumberOfCalleeSavedVRegisters]; @@ -254,12 +254,12 @@ void Simulator::CheckPCSComplianceAndRun() { // Start the simulation! Run(); #ifdef DEBUG - CHECK_EQ(original_stack, sp()); + DCHECK_EQ(original_stack, sp()); // Check that callee-saved registers have been preserved. register_list = kCalleeSaved; fpregister_list = kCalleeSavedV; for (int i = 0; i < kNumberOfCalleeSavedRegisters; i++) { - CHECK_EQ(saved_registers[i], xreg(register_list.PopLowestIndex().code())); + DCHECK_EQ(saved_registers[i], xreg(register_list.PopLowestIndex().code())); } for (int i = 0; i < kNumberOfCalleeSavedVRegisters; i++) { DCHECK(saved_fpregisters[i] == @@ -549,11 +549,6 @@ typedef ObjectPair (*SimulatorRuntimeCall)(int64_t arg0, int64_t arg1, int64_t arg6, int64_t arg7, int64_t arg8); -typedef ObjectTriple (*SimulatorRuntimeTripleCall)(int64_t arg0, int64_t arg1, - int64_t arg2, int64_t arg3, - int64_t arg4, int64_t arg5, - int64_t arg6, int64_t arg7); - typedef int64_t (*SimulatorRuntimeCompareCall)(double arg1, double arg2); typedef double (*SimulatorRuntimeFPFPCall)(double arg1, double arg2); typedef double (*SimulatorRuntimeFPCall)(double arg1); @@ -643,38 +638,6 @@ void Simulator::DoRuntimeCall(Instruction* instr) { break; } - case ExternalReference::BUILTIN_CALL_TRIPLE: { - // ObjectTriple f(v8::internal::Arguments). - TraceSim("Type: BUILTIN_CALL TRIPLE\n"); - SimulatorRuntimeTripleCall target = - reinterpret_cast<SimulatorRuntimeTripleCall>(external); - - // We don't know how many arguments are being passed, but we can - // pass 8 without touching the stack. They will be ignored by the - // host function if they aren't used. - TraceSim( - "Arguments: " - "0x%016" PRIx64 ", 0x%016" PRIx64 - ", " - "0x%016" PRIx64 ", 0x%016" PRIx64 - ", " - "0x%016" PRIx64 ", 0x%016" PRIx64 - ", " - "0x%016" PRIx64 ", 0x%016" PRIx64, - arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); - // Return location passed in x8. - ObjectTriple* sim_result = reinterpret_cast<ObjectTriple*>(xreg(8)); - ObjectTriple result = - target(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); - TraceSim("Returned: {%p, %p, %p}\n", static_cast<void*>(result.x), - static_cast<void*>(result.y), static_cast<void*>(result.z)); -#ifdef DEBUG - CorruptAllCallerSavedCPURegisters(); -#endif - *sim_result = result; - break; - } - case ExternalReference::DIRECT_API_CALL: { // void f(v8::FunctionCallbackInfo&) TraceSim("Type: DIRECT_API_CALL\n"); |