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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 int offset = num_parameters * kPointerSize; | 271 int offset = num_parameters * kPointerSize; |
272 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { | 272 if (has_new_target == ArgumentsAccessStub::HAS_NEW_TARGET) { |
273 --num_parameters; | 273 --num_parameters; |
274 ++rest_index; | 274 ++rest_index; |
275 } | 275 } |
276 | 276 |
277 __ Addu(a3, fp, | 277 __ Addu(a3, fp, |
278 Operand(StandardFrameConstants::kCallerSPOffset + offset)); | 278 Operand(StandardFrameConstants::kCallerSPOffset + offset)); |
279 __ li(a2, Operand(Smi::FromInt(num_parameters))); | 279 __ li(a2, Operand(Smi::FromInt(num_parameters))); |
280 __ li(a1, Operand(Smi::FromInt(rest_index))); | 280 __ li(a1, Operand(Smi::FromInt(rest_index))); |
281 __ Push(a3, a2, a1); | 281 __ li(a0, Operand(Smi::FromInt(language_mode()))); |
| 282 __ Push(a3, a2, a1, a0); |
282 | 283 |
283 RestParamAccessStub stub(isolate()); | 284 RestParamAccessStub stub(isolate()); |
284 __ CallStub(&stub); | 285 __ CallStub(&stub); |
285 | 286 |
286 SetVar(rest_param, v0, a1, a2); | 287 SetVar(rest_param, v0, a1, a2); |
287 } | 288 } |
288 | 289 |
289 Variable* arguments = scope()->arguments(); | 290 Variable* arguments = scope()->arguments(); |
290 if (arguments != NULL) { | 291 if (arguments != NULL) { |
291 // Function uses arguments object. | 292 // Function uses arguments object. |
(...skipping 5225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5517 Assembler::target_address_at(pc_immediate_load_address)) == | 5518 Assembler::target_address_at(pc_immediate_load_address)) == |
5518 reinterpret_cast<uint32_t>( | 5519 reinterpret_cast<uint32_t>( |
5519 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5520 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5520 return OSR_AFTER_STACK_CHECK; | 5521 return OSR_AFTER_STACK_CHECK; |
5521 } | 5522 } |
5522 | 5523 |
5523 | 5524 |
5524 } } // namespace v8::internal | 5525 } } // namespace v8::internal |
5525 | 5526 |
5526 #endif // V8_TARGET_ARCH_MIPS | 5527 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |