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 6818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6829 __ and_(sp, sp, Operand(-frame_alignment)); | 6829 __ and_(sp, sp, Operand(-frame_alignment)); |
6830 } | 6830 } |
6831 | 6831 |
6832 #if V8_HOST_ARCH_ARM | 6832 #if V8_HOST_ARCH_ARM |
6833 int32_t entry_hook = | 6833 int32_t entry_hook = |
6834 reinterpret_cast<int32_t>(masm->isolate()->function_entry_hook()); | 6834 reinterpret_cast<int32_t>(masm->isolate()->function_entry_hook()); |
6835 __ mov(ip, Operand(entry_hook)); | 6835 __ mov(ip, Operand(entry_hook)); |
6836 #else | 6836 #else |
6837 // Under the simulator we need to indirect the entry hook through a | 6837 // Under the simulator we need to indirect the entry hook through a |
6838 // trampoline function at a known address. | 6838 // trampoline function at a known address. |
| 6839 // It additionally takes an isolate as a third parameter |
| 6840 __ mov(r2, Operand(ExternalReference::isolate_address(masm->isolate()))); |
| 6841 |
6839 ApiFunction dispatcher(FUNCTION_ADDR(EntryHookTrampoline)); | 6842 ApiFunction dispatcher(FUNCTION_ADDR(EntryHookTrampoline)); |
6840 __ mov(ip, Operand(ExternalReference(&dispatcher, | 6843 __ mov(ip, Operand(ExternalReference(&dispatcher, |
6841 ExternalReference::BUILTIN_CALL, | 6844 ExternalReference::BUILTIN_CALL, |
6842 masm->isolate()))); | 6845 masm->isolate()))); |
6843 #endif | 6846 #endif |
6844 __ Call(ip); | 6847 __ Call(ip); |
6845 | 6848 |
6846 // Restore the stack pointer if needed. | 6849 // Restore the stack pointer if needed. |
6847 if (frame_alignment > kPointerSize) { | 6850 if (frame_alignment > kPointerSize) { |
6848 __ mov(sp, r5); | 6851 __ mov(sp, r5); |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7131 __ bind(&fast_elements_case); | 7134 __ bind(&fast_elements_case); |
7132 GenerateCase(masm, FAST_ELEMENTS); | 7135 GenerateCase(masm, FAST_ELEMENTS); |
7133 } | 7136 } |
7134 | 7137 |
7135 | 7138 |
7136 #undef __ | 7139 #undef __ |
7137 | 7140 |
7138 } } // namespace v8::internal | 7141 } } // namespace v8::internal |
7139 | 7142 |
7140 #endif // V8_TARGET_ARCH_ARM | 7143 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |