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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 __ Addu(a2, fp, | 330 __ Addu(a2, fp, |
331 Operand(StandardFrameConstants::kCallerSPOffset + offset)); | 331 Operand(StandardFrameConstants::kCallerSPOffset + offset)); |
332 __ li(a1, Operand(Smi::FromInt(num_parameters))); | 332 __ li(a1, Operand(Smi::FromInt(num_parameters))); |
333 __ Push(a3, a2, a1); | 333 __ Push(a3, a2, a1); |
334 | 334 |
335 // Arguments to ArgumentsAccessStub: | 335 // Arguments to ArgumentsAccessStub: |
336 // function, receiver address, parameter count. | 336 // function, receiver address, parameter count. |
337 // The stub will rewrite receiever and parameter count if the previous | 337 // The stub will rewrite receiever and parameter count if the previous |
338 // stack frame was an arguments adapter frame. | 338 // stack frame was an arguments adapter frame. |
339 ArgumentsAccessStub::Type type; | 339 ArgumentsAccessStub::Type type; |
340 if (is_strict(language_mode()) || !is_simple_parameter_list()) { | 340 if (is_strict(language_mode()) || !has_simple_parameters()) { |
341 type = ArgumentsAccessStub::NEW_STRICT; | 341 type = ArgumentsAccessStub::NEW_STRICT; |
342 } else if (function()->has_duplicate_parameters()) { | 342 } else if (function()->has_duplicate_parameters()) { |
343 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; | 343 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; |
344 } else { | 344 } else { |
345 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; | 345 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; |
346 } | 346 } |
347 ArgumentsAccessStub stub(isolate(), type); | 347 ArgumentsAccessStub stub(isolate(), type); |
348 __ CallStub(&stub); | 348 __ CallStub(&stub); |
349 | 349 |
350 SetVar(arguments, v0, a1, a2); | 350 SetVar(arguments, v0, a1, a2); |
(...skipping 5077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5428 reinterpret_cast<uint32_t>( | 5428 reinterpret_cast<uint32_t>( |
5429 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5429 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5430 return OSR_AFTER_STACK_CHECK; | 5430 return OSR_AFTER_STACK_CHECK; |
5431 } | 5431 } |
5432 | 5432 |
5433 | 5433 |
5434 } // namespace internal | 5434 } // namespace internal |
5435 } // namespace v8 | 5435 } // namespace v8 |
5436 | 5436 |
5437 #endif // V8_TARGET_ARCH_MIPS | 5437 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |