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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
10 // | 10 // |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 int offset = num_parameters * kPointerSize; | 266 int offset = num_parameters * kPointerSize; |
267 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { | 267 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { |
268 --num_parameters; | 268 --num_parameters; |
269 ++rest_index; | 269 ++rest_index; |
270 } | 270 } |
271 | 271 |
272 __ Addu(a3, fp, | 272 __ Addu(a3, fp, |
273 Operand(StandardFrameConstants::kCallerSPOffset + offset)); | 273 Operand(StandardFrameConstants::kCallerSPOffset + offset)); |
274 __ li(a2, Operand(Smi::FromInt(num_parameters))); | 274 __ li(a2, Operand(Smi::FromInt(num_parameters))); |
275 __ li(a1, Operand(Smi::FromInt(rest_index))); | 275 __ li(a1, Operand(Smi::FromInt(rest_index))); |
276 __ Push(a3, a2, a1); | 276 __ li(a0, Operand(Smi::FromInt(language_mode()))); |
| 277 __ Push(a3, a2, a1, a0); |
277 | 278 |
278 RestParamAccessStub stub(isolate()); | 279 RestParamAccessStub stub(isolate()); |
279 __ CallStub(&stub); | 280 __ CallStub(&stub); |
280 | 281 |
281 SetVar(rest_param, v0, a1, a2); | 282 SetVar(rest_param, v0, a1, a2); |
282 } | 283 } |
283 | 284 |
284 Variable* arguments = scope()->arguments(); | 285 Variable* arguments = scope()->arguments(); |
285 if (arguments != NULL) { | 286 if (arguments != NULL) { |
286 // Function uses arguments object. | 287 // Function uses arguments object. |
(...skipping 5165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5452 Assembler::target_address_at(pc_immediate_load_address)) == | 5453 Assembler::target_address_at(pc_immediate_load_address)) == |
5453 reinterpret_cast<uint32_t>( | 5454 reinterpret_cast<uint32_t>( |
5454 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5455 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5455 return OSR_AFTER_STACK_CHECK; | 5456 return OSR_AFTER_STACK_CHECK; |
5456 } | 5457 } |
5457 | 5458 |
5458 | 5459 |
5459 } } // namespace v8::internal | 5460 } } // namespace v8::internal |
5460 | 5461 |
5461 #endif // V8_TARGET_ARCH_MIPS | 5462 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |