OLD | NEW |
1 // Copyright 2011 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 4058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4070 // field in the JSEnv and return a failure sentinel. | 4070 // field in the JSEnv and return a failure sentinel. |
4071 ExternalReference pending_exception(Isolate::kPendingExceptionAddress, | 4071 ExternalReference pending_exception(Isolate::kPendingExceptionAddress, |
4072 isolate); | 4072 isolate); |
4073 __ Store(pending_exception, rax); | 4073 __ Store(pending_exception, rax); |
4074 __ movq(rax, Failure::Exception(), RelocInfo::NONE); | 4074 __ movq(rax, Failure::Exception(), RelocInfo::NONE); |
4075 __ jmp(&exit); | 4075 __ jmp(&exit); |
4076 | 4076 |
4077 // Invoke: Link this frame into the handler chain. There's only one | 4077 // Invoke: Link this frame into the handler chain. There's only one |
4078 // handler block in this code object, so its index is 0. | 4078 // handler block in this code object, so its index is 0. |
4079 __ bind(&invoke); | 4079 __ bind(&invoke); |
4080 __ PushTryHandler(IN_JS_ENTRY, JS_ENTRY_HANDLER, 0); | 4080 __ PushTryHandler(StackHandler::JS_ENTRY, 0); |
4081 | 4081 |
4082 // Clear any pending exceptions. | 4082 // Clear any pending exceptions. |
4083 __ LoadRoot(rax, Heap::kTheHoleValueRootIndex); | 4083 __ LoadRoot(rax, Heap::kTheHoleValueRootIndex); |
4084 __ Store(pending_exception, rax); | 4084 __ Store(pending_exception, rax); |
4085 | 4085 |
4086 // Fake a receiver (NULL). | 4086 // Fake a receiver (NULL). |
4087 __ push(Immediate(0)); // receiver | 4087 __ push(Immediate(0)); // receiver |
4088 | 4088 |
4089 // Invoke the function by calling through JS entry trampoline builtin and | 4089 // Invoke the function by calling through JS entry trampoline builtin and |
4090 // pop the faked function when we return. We load the address from an | 4090 // pop the faked function when we return. We load the address from an |
(...skipping 2207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6298 xmm0, | 6298 xmm0, |
6299 &slow_elements); | 6299 &slow_elements); |
6300 __ ret(0); | 6300 __ ret(0); |
6301 } | 6301 } |
6302 | 6302 |
6303 #undef __ | 6303 #undef __ |
6304 | 6304 |
6305 } } // namespace v8::internal | 6305 } } // namespace v8::internal |
6306 | 6306 |
6307 #endif // V8_TARGET_ARCH_X64 | 6307 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |