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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 __ Daddu(a2, fp, | 326 __ Daddu(a2, fp, |
327 Operand(StandardFrameConstants::kCallerSPOffset + offset)); | 327 Operand(StandardFrameConstants::kCallerSPOffset + offset)); |
328 __ li(a1, Operand(Smi::FromInt(num_parameters))); | 328 __ li(a1, Operand(Smi::FromInt(num_parameters))); |
329 __ Push(a3, a2, a1); | 329 __ Push(a3, a2, a1); |
330 | 330 |
331 // Arguments to ArgumentsAccessStub: | 331 // Arguments to ArgumentsAccessStub: |
332 // function, receiver address, parameter count. | 332 // function, receiver address, parameter count. |
333 // The stub will rewrite receiever and parameter count if the previous | 333 // The stub will rewrite receiever and parameter count if the previous |
334 // stack frame was an arguments adapter frame. | 334 // stack frame was an arguments adapter frame. |
335 ArgumentsAccessStub::Type type; | 335 ArgumentsAccessStub::Type type; |
336 if (is_strict(language_mode()) || !is_simple_parameter_list()) { | 336 if (is_strict(language_mode()) || !has_simple_parameters()) { |
337 type = ArgumentsAccessStub::NEW_STRICT; | 337 type = ArgumentsAccessStub::NEW_STRICT; |
338 } else if (function()->has_duplicate_parameters()) { | 338 } else if (function()->has_duplicate_parameters()) { |
339 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; | 339 type = ArgumentsAccessStub::NEW_SLOPPY_SLOW; |
340 } else { | 340 } else { |
341 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; | 341 type = ArgumentsAccessStub::NEW_SLOPPY_FAST; |
342 } | 342 } |
343 ArgumentsAccessStub stub(isolate(), type); | 343 ArgumentsAccessStub stub(isolate(), type); |
344 __ CallStub(&stub); | 344 __ CallStub(&stub); |
345 | 345 |
346 SetVar(arguments, v0, a1, a2); | 346 SetVar(arguments, v0, a1, a2); |
(...skipping 5087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5434 reinterpret_cast<uint64_t>( | 5434 reinterpret_cast<uint64_t>( |
5435 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5435 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5436 return OSR_AFTER_STACK_CHECK; | 5436 return OSR_AFTER_STACK_CHECK; |
5437 } | 5437 } |
5438 | 5438 |
5439 | 5439 |
5440 } // namespace internal | 5440 } // namespace internal |
5441 } // namespace v8 | 5441 } // namespace v8 |
5442 | 5442 |
5443 #endif // V8_TARGET_ARCH_MIPS64 | 5443 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |