| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 int offset = num_parameters * kPointerSize; | 263 int offset = num_parameters * kPointerSize; |
| 264 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { | 264 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { |
| 265 --num_parameters; | 265 --num_parameters; |
| 266 ++rest_index; | 266 ++rest_index; |
| 267 } | 267 } |
| 268 | 268 |
| 269 __ Daddu(a3, fp, | 269 __ Daddu(a3, fp, |
| 270 Operand(StandardFrameConstants::kCallerSPOffset + offset)); | 270 Operand(StandardFrameConstants::kCallerSPOffset + offset)); |
| 271 __ li(a2, Operand(Smi::FromInt(num_parameters))); | 271 __ li(a2, Operand(Smi::FromInt(num_parameters))); |
| 272 __ li(a1, Operand(Smi::FromInt(rest_index))); | 272 __ li(a1, Operand(Smi::FromInt(rest_index))); |
| 273 __ Push(a3, a2, a1); | 273 __ li(a0, Operand(Smi::FromInt(language_mode()))); |
| 274 __ Push(a3, a2, a1, a0); |
| 274 | 275 |
| 275 RestParamAccessStub stub(isolate()); | 276 RestParamAccessStub stub(isolate()); |
| 276 __ CallStub(&stub); | 277 __ CallStub(&stub); |
| 277 | 278 |
| 278 SetVar(rest_param, v0, a1, a2); | 279 SetVar(rest_param, v0, a1, a2); |
| 279 } | 280 } |
| 280 | 281 |
| 281 Variable* arguments = scope()->arguments(); | 282 Variable* arguments = scope()->arguments(); |
| 282 if (arguments != NULL) { | 283 if (arguments != NULL) { |
| 283 // Function uses arguments object. | 284 // Function uses arguments object. |
| (...skipping 5175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5459 Assembler::target_address_at(pc_immediate_load_address)) == | 5460 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5460 reinterpret_cast<uint64_t>( | 5461 reinterpret_cast<uint64_t>( |
| 5461 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5462 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5462 return OSR_AFTER_STACK_CHECK; | 5463 return OSR_AFTER_STACK_CHECK; |
| 5463 } | 5464 } |
| 5464 | 5465 |
| 5465 | 5466 |
| 5466 } } // namespace v8::internal | 5467 } } // namespace v8::internal |
| 5467 | 5468 |
| 5468 #endif // V8_TARGET_ARCH_MIPS64 | 5469 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |