| 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_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Insert extra arguments. | 38 // Insert extra arguments. |
| 39 int num_extra_args = 0; | 39 int num_extra_args = 0; |
| 40 if (extra_args == NEEDS_CALLED_FUNCTION) { | 40 if (extra_args == NEEDS_CALLED_FUNCTION) { |
| 41 num_extra_args = 1; | 41 num_extra_args = 1; |
| 42 __ push(a1); | 42 __ push(a1); |
| 43 } else { | 43 } else { |
| 44 DCHECK(extra_args == NO_EXTRA_ARGUMENTS); | 44 DCHECK(extra_args == NO_EXTRA_ARGUMENTS); |
| 45 } | 45 } |
| 46 | 46 |
| 47 // JumpToExternalReference expects s0 to contain the number of arguments | 47 // JumpToExternalReference expects a0 to contain the number of arguments |
| 48 // including the receiver and the extra arguments. | 48 // including the receiver and the extra arguments. |
| 49 __ Daddu(s0, a0, num_extra_args + 1); | 49 __ Daddu(a0, a0, num_extra_args + 1); |
| 50 __ dsll(s1, s0, kPointerSizeLog2); | |
| 51 __ Dsubu(s1, s1, kPointerSize); | |
| 52 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); | 50 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); |
| 53 } | 51 } |
| 54 | 52 |
| 55 | 53 |
| 56 // Load the built-in InternalArray function from the current context. | 54 // Load the built-in InternalArray function from the current context. |
| 57 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, | 55 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, |
| 58 Register result) { | 56 Register result) { |
| 59 // Load the native context. | 57 // Load the native context. |
| 60 | 58 |
| 61 __ ld(result, | 59 __ ld(result, |
| (...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1582 __ break_(0xCC); | 1580 __ break_(0xCC); |
| 1583 } | 1581 } |
| 1584 } | 1582 } |
| 1585 | 1583 |
| 1586 | 1584 |
| 1587 #undef __ | 1585 #undef __ |
| 1588 | 1586 |
| 1589 } } // namespace v8::internal | 1587 } } // namespace v8::internal |
| 1590 | 1588 |
| 1591 #endif // V8_TARGET_ARCH_MIPS64 | 1589 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |