OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 6945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6956 __ And(sp, sp, Operand(-frame_alignment)); | 6956 __ And(sp, sp, Operand(-frame_alignment)); |
6957 } | 6957 } |
6958 | 6958 |
6959 #if defined(V8_HOST_ARCH_MIPS) | 6959 #if defined(V8_HOST_ARCH_MIPS) |
6960 int32_t entry_hook = | 6960 int32_t entry_hook = |
6961 reinterpret_cast<int32_t>(masm->isolate()->function_entry_hook()); | 6961 reinterpret_cast<int32_t>(masm->isolate()->function_entry_hook()); |
6962 __ li(at, Operand(entry_hook)); | 6962 __ li(at, Operand(entry_hook)); |
6963 #else | 6963 #else |
6964 // Under the simulator we need to indirect the entry hook through a | 6964 // Under the simulator we need to indirect the entry hook through a |
6965 // trampoline function at a known address. | 6965 // trampoline function at a known address. |
| 6966 // It additionally takes an isolate as a third parameter. |
| 6967 __ li(a2, Operand(ExternalReference::isolate_address(masm->isolate()))); |
| 6968 |
6966 ApiFunction dispatcher(FUNCTION_ADDR(EntryHookTrampoline)); | 6969 ApiFunction dispatcher(FUNCTION_ADDR(EntryHookTrampoline)); |
6967 __ li(at, Operand(ExternalReference(&dispatcher, | 6970 __ li(at, Operand(ExternalReference(&dispatcher, |
6968 ExternalReference::BUILTIN_CALL, | 6971 ExternalReference::BUILTIN_CALL, |
6969 masm->isolate()))); | 6972 masm->isolate()))); |
6970 #endif | 6973 #endif |
6971 __ Call(at); | 6974 __ Call(at); |
6972 | 6975 |
6973 // Restore the stack pointer if needed. | 6976 // Restore the stack pointer if needed. |
6974 if (frame_alignment > kPointerSize) { | 6977 if (frame_alignment > kPointerSize) { |
6975 __ mov(sp, s5); | 6978 __ mov(sp, s5); |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7255 __ bind(&fast_elements_case); | 7258 __ bind(&fast_elements_case); |
7256 GenerateCase(masm, FAST_ELEMENTS); | 7259 GenerateCase(masm, FAST_ELEMENTS); |
7257 } | 7260 } |
7258 | 7261 |
7259 | 7262 |
7260 #undef __ | 7263 #undef __ |
7261 | 7264 |
7262 } } // namespace v8::internal | 7265 } } // namespace v8::internal |
7263 | 7266 |
7264 #endif // V8_TARGET_ARCH_MIPS | 7267 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |