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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 // ----------- S t a t e ------------- | 580 // ----------- S t a t e ------------- |
581 // -- r3: new target | 581 // -- r3: new target |
582 // -- sp[0*kPointerSize]: implicit receiver | 582 // -- sp[0*kPointerSize]: implicit receiver |
583 // -- sp[1*kPointerSize]: implicit receiver | 583 // -- sp[1*kPointerSize]: implicit receiver |
584 // -- sp[2*kPointerSize]: constructor function | 584 // -- sp[2*kPointerSize]: constructor function |
585 // -- sp[3*kPointerSize]: number of arguments (tagged) | 585 // -- sp[3*kPointerSize]: number of arguments (tagged) |
586 // -- sp[4*kPointerSize]: context | 586 // -- sp[4*kPointerSize]: context |
587 // ----------------------------------- | 587 // ----------------------------------- |
588 | 588 |
589 // Restore constructor function and argument count. | 589 // Restore constructor function and argument count. |
590 __ ldr(a1, MemOperand(fp, ConstructFrameConstants::kConstructorOffset)); | 590 __ Ld(a1, MemOperand(fp, ConstructFrameConstants::kConstructorOffset)); |
591 __ ldr(a0, MemOperand(fp, ConstructFrameConstants::kLengthOffset)); | 591 __ Ld(a0, MemOperand(fp, ConstructFrameConstants::kLengthOffset)); |
592 __ SmiUntag(a0); | 592 __ SmiUntag(a0); |
593 | 593 |
594 // Set up pointer to last argument. | 594 // Set up pointer to last argument. |
595 __ Daddu(t2, fp, Operand(StandardFrameConstants::kCallerSPOffset)); | 595 __ Daddu(t2, fp, Operand(StandardFrameConstants::kCallerSPOffset)); |
596 | 596 |
597 // Copy arguments and receiver to the expression stack. | 597 // Copy arguments and receiver to the expression stack. |
598 Label loop, entry; | 598 Label loop, entry; |
599 __ mov(t3, a0); | 599 __ mov(t3, a0); |
600 // ----------- S t a t e ------------- | 600 // ----------- S t a t e ------------- |
601 // -- a0: number of arguments (untagged) | 601 // -- a0: number of arguments (untagged) |
(...skipping 2508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3110 __ Daddu(at, v0, Operand(Code::kHeaderSize - kHeapObjectTag)); | 3110 __ Daddu(at, v0, Operand(Code::kHeaderSize - kHeapObjectTag)); |
3111 __ Jump(at); | 3111 __ Jump(at); |
3112 } | 3112 } |
3113 | 3113 |
3114 #undef __ | 3114 #undef __ |
3115 | 3115 |
3116 } // namespace internal | 3116 } // namespace internal |
3117 } // namespace v8 | 3117 } // namespace v8 |
3118 | 3118 |
3119 #endif // V8_TARGET_ARCH_MIPS64 | 3119 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |