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 | 5 |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // Insert extra arguments. | 39 // Insert extra arguments. |
40 int num_extra_args = 0; | 40 int num_extra_args = 0; |
41 if (extra_args == NEEDS_CALLED_FUNCTION) { | 41 if (extra_args == NEEDS_CALLED_FUNCTION) { |
42 num_extra_args = 1; | 42 num_extra_args = 1; |
43 __ push(a1); | 43 __ push(a1); |
44 } else { | 44 } else { |
45 DCHECK(extra_args == NO_EXTRA_ARGUMENTS); | 45 DCHECK(extra_args == NO_EXTRA_ARGUMENTS); |
46 } | 46 } |
47 | 47 |
48 // JumpToExternalReference expects s0 to contain the number of arguments | 48 // JumpToExternalReference expects a0 to contain the number of arguments |
49 // including the receiver and the extra arguments. | 49 // including the receiver and the extra arguments. |
50 __ Addu(s0, a0, num_extra_args + 1); | 50 __ Addu(a0, a0, num_extra_args + 1); |
51 __ sll(s1, s0, kPointerSizeLog2); | |
52 __ Subu(s1, s1, kPointerSize); | |
53 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); | 51 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); |
54 } | 52 } |
55 | 53 |
56 | 54 |
57 // Load the built-in InternalArray function from the current context. | 55 // Load the built-in InternalArray function from the current context. |
58 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, | 56 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, |
59 Register result) { | 57 Register result) { |
60 // Load the native context. | 58 // Load the native context. |
61 | 59 |
62 __ lw(result, | 60 __ lw(result, |
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1572 __ break_(0xCC); | 1570 __ break_(0xCC); |
1573 } | 1571 } |
1574 } | 1572 } |
1575 | 1573 |
1576 | 1574 |
1577 #undef __ | 1575 #undef __ |
1578 | 1576 |
1579 } } // namespace v8::internal | 1577 } } // namespace v8::internal |
1580 | 1578 |
1581 #endif // V8_TARGET_ARCH_MIPS | 1579 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |