| 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 "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 int offset = num_parameters * kPointerSize; | 268 int offset = num_parameters * kPointerSize; |
| 269 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { | 269 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { |
| 270 --num_parameters; | 270 --num_parameters; |
| 271 ++rest_index; | 271 ++rest_index; |
| 272 } | 272 } |
| 273 | 273 |
| 274 __ Daddu(a3, fp, | 274 __ Daddu(a3, fp, |
| 275 Operand(StandardFrameConstants::kCallerSPOffset + offset)); | 275 Operand(StandardFrameConstants::kCallerSPOffset + offset)); |
| 276 __ li(a2, Operand(Smi::FromInt(num_parameters))); | 276 __ li(a2, Operand(Smi::FromInt(num_parameters))); |
| 277 __ li(a1, Operand(Smi::FromInt(rest_index))); | 277 __ li(a1, Operand(Smi::FromInt(rest_index))); |
| 278 __ Push(a3, a2, a1); | 278 __ li(a0, Operand(Smi::FromInt(language_mode()))); |
| 279 __ Push(a3, a2, a1, a0); |
| 279 | 280 |
| 280 RestParamAccessStub stub(isolate()); | 281 RestParamAccessStub stub(isolate()); |
| 281 __ CallStub(&stub); | 282 __ CallStub(&stub); |
| 282 | 283 |
| 283 SetVar(rest_param, v0, a1, a2); | 284 SetVar(rest_param, v0, a1, a2); |
| 284 } | 285 } |
| 285 | 286 |
| 286 Variable* arguments = scope()->arguments(); | 287 Variable* arguments = scope()->arguments(); |
| 287 if (arguments != NULL) { | 288 if (arguments != NULL) { |
| 288 // Function uses arguments object. | 289 // Function uses arguments object. |
| (...skipping 5235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5524 Assembler::target_address_at(pc_immediate_load_address)) == | 5525 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5525 reinterpret_cast<uint64_t>( | 5526 reinterpret_cast<uint64_t>( |
| 5526 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5527 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5527 return OSR_AFTER_STACK_CHECK; | 5528 return OSR_AFTER_STACK_CHECK; |
| 5528 } | 5529 } |
| 5529 | 5530 |
| 5530 | 5531 |
| 5531 } } // namespace v8::internal | 5532 } } // namespace v8::internal |
| 5532 | 5533 |
| 5533 #endif // V8_TARGET_ARCH_MIPS64 | 5534 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |