| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <limits.h> // For LONG_MIN, LONG_MAX. | 5 #include <limits.h> // For LONG_MIN, LONG_MAX. |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 #include "src/base/division-by-constant.h" | 9 #include "src/base/division-by-constant.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 4326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4337 DCHECK(flag == JUMP_FUNCTION); | 4337 DCHECK(flag == JUMP_FUNCTION); |
| 4338 Jump(code); | 4338 Jump(code); |
| 4339 } | 4339 } |
| 4340 // Continue here if InvokePrologue does handle the invocation due to | 4340 // Continue here if InvokePrologue does handle the invocation due to |
| 4341 // mismatched parameter counts. | 4341 // mismatched parameter counts. |
| 4342 bind(&done); | 4342 bind(&done); |
| 4343 } | 4343 } |
| 4344 } | 4344 } |
| 4345 | 4345 |
| 4346 | 4346 |
| 4347 void MacroAssembler::InvokeFunction(Register function, | 4347 void MacroAssembler::InvokeFunction(Register function, Register new_target, |
| 4348 Register new_target, | |
| 4349 const ParameterCount& actual, | 4348 const ParameterCount& actual, |
| 4350 InvokeFlag flag, | 4349 InvokeFlag flag, |
| 4351 const CallWrapper& call_wrapper) { | 4350 const CallWrapper& call_wrapper) { |
| 4352 // You can't call a function without a valid frame. | 4351 // You can't call a function without a valid frame. |
| 4353 DCHECK(flag == JUMP_FUNCTION || has_frame()); | 4352 DCHECK(flag == JUMP_FUNCTION || has_frame()); |
| 4354 | 4353 |
| 4355 // Contract with called JS functions requires that function is passed in a1. | 4354 // Contract with called JS functions requires that function is passed in a1. |
| 4356 DCHECK(function.is(a1)); | 4355 DCHECK(function.is(a1)); |
| 4357 Register expected_reg = a2; | 4356 Register expected_reg = a2; |
| 4358 Register temp_reg = t0; | 4357 Register temp_reg = t0; |
| (...skipping 1924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6283 if (mag.shift > 0) sra(result, result, mag.shift); | 6282 if (mag.shift > 0) sra(result, result, mag.shift); |
| 6284 srl(at, dividend, 31); | 6283 srl(at, dividend, 31); |
| 6285 Addu(result, result, Operand(at)); | 6284 Addu(result, result, Operand(at)); |
| 6286 } | 6285 } |
| 6287 | 6286 |
| 6288 | 6287 |
| 6289 } // namespace internal | 6288 } // namespace internal |
| 6290 } // namespace v8 | 6289 } // namespace v8 |
| 6291 | 6290 |
| 6292 #endif // V8_TARGET_ARCH_MIPS64 | 6291 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |