| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 | 1078 |
| 1079 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); | 1079 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); |
| 1080 | 1080 |
| 1081 // Current string. | 1081 // Current string. |
| 1082 bool is_ascii = subject->IsAsciiRepresentationUnderneath(); | 1082 bool is_ascii = subject->IsAsciiRepresentationUnderneath(); |
| 1083 | 1083 |
| 1084 ASSERT(re_code->instruction_start() <= *return_address); | 1084 ASSERT(re_code->instruction_start() <= *return_address); |
| 1085 ASSERT(*return_address <= | 1085 ASSERT(*return_address <= |
| 1086 re_code->instruction_start() + re_code->instruction_size()); | 1086 re_code->instruction_start() + re_code->instruction_size()); |
| 1087 | 1087 |
| 1088 MaybeObject* result = Execution::HandleStackGuardInterrupt(); | 1088 MaybeObject* result = Execution::HandleStackGuardInterrupt(isolate); |
| 1089 | 1089 |
| 1090 if (*code_handle != re_code) { // Return address no longer valid | 1090 if (*code_handle != re_code) { // Return address no longer valid |
| 1091 int delta = code_handle->address() - re_code->address(); | 1091 int delta = code_handle->address() - re_code->address(); |
| 1092 // Overwrite the return address on the stack. | 1092 // Overwrite the return address on the stack. |
| 1093 *return_address += delta; | 1093 *return_address += delta; |
| 1094 } | 1094 } |
| 1095 | 1095 |
| 1096 if (result->IsException()) { | 1096 if (result->IsException()) { |
| 1097 return EXCEPTION; | 1097 return EXCEPTION; |
| 1098 } | 1098 } |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1281 } | 1281 } |
| 1282 | 1282 |
| 1283 | 1283 |
| 1284 #undef __ | 1284 #undef __ |
| 1285 | 1285 |
| 1286 #endif // V8_INTERPRETED_REGEXP | 1286 #endif // V8_INTERPRETED_REGEXP |
| 1287 | 1287 |
| 1288 }} // namespace v8::internal | 1288 }} // namespace v8::internal |
| 1289 | 1289 |
| 1290 #endif // V8_TARGET_ARCH_IA32 | 1290 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |