| 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 #include "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "cpu-profiler.h" | 9 #include "cpu-profiler.h" |
| 10 #include "serialize.h" | 10 #include "serialize.h" |
| (...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 | 1203 |
| 1204 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); | 1204 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); |
| 1205 | 1205 |
| 1206 // Current string. | 1206 // Current string. |
| 1207 bool is_ascii = subject->IsOneByteRepresentationUnderneath(); | 1207 bool is_ascii = subject->IsOneByteRepresentationUnderneath(); |
| 1208 | 1208 |
| 1209 ASSERT(re_code->instruction_start() <= *return_address); | 1209 ASSERT(re_code->instruction_start() <= *return_address); |
| 1210 ASSERT(*return_address <= | 1210 ASSERT(*return_address <= |
| 1211 re_code->instruction_start() + re_code->instruction_size()); | 1211 re_code->instruction_start() + re_code->instruction_size()); |
| 1212 | 1212 |
| 1213 Object* result = Execution::HandleStackGuardInterrupt(isolate); | 1213 Object* result = isolate->stack_guard()->HandleInterrupts(); |
| 1214 | 1214 |
| 1215 if (*code_handle != re_code) { // Return address no longer valid | 1215 if (*code_handle != re_code) { // Return address no longer valid |
| 1216 intptr_t delta = code_handle->address() - re_code->address(); | 1216 intptr_t delta = code_handle->address() - re_code->address(); |
| 1217 // Overwrite the return address on the stack. | 1217 // Overwrite the return address on the stack. |
| 1218 *return_address += delta; | 1218 *return_address += delta; |
| 1219 } | 1219 } |
| 1220 | 1220 |
| 1221 if (result->IsException()) { | 1221 if (result->IsException()) { |
| 1222 return EXCEPTION; | 1222 return EXCEPTION; |
| 1223 } | 1223 } |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1434 } | 1434 } |
| 1435 } | 1435 } |
| 1436 | 1436 |
| 1437 #undef __ | 1437 #undef __ |
| 1438 | 1438 |
| 1439 #endif // V8_INTERPRETED_REGEXP | 1439 #endif // V8_INTERPRETED_REGEXP |
| 1440 | 1440 |
| 1441 }} // namespace v8::internal | 1441 }} // namespace v8::internal |
| 1442 | 1442 |
| 1443 #endif // V8_TARGET_ARCH_X64 | 1443 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |