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 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 | 1087 |
1088 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); | 1088 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); |
1089 | 1089 |
1090 // Current string. | 1090 // Current string. |
1091 bool is_ascii = subject->IsOneByteRepresentationUnderneath(); | 1091 bool is_ascii = subject->IsOneByteRepresentationUnderneath(); |
1092 | 1092 |
1093 ASSERT(re_code->instruction_start() <= *return_address); | 1093 ASSERT(re_code->instruction_start() <= *return_address); |
1094 ASSERT(*return_address <= | 1094 ASSERT(*return_address <= |
1095 re_code->instruction_start() + re_code->instruction_size()); | 1095 re_code->instruction_start() + re_code->instruction_size()); |
1096 | 1096 |
1097 MaybeObject* result = Execution::HandleStackGuardInterrupt(isolate); | 1097 Object* result = Execution::HandleStackGuardInterrupt(isolate); |
1098 | 1098 |
1099 if (*code_handle != re_code) { // Return address no longer valid | 1099 if (*code_handle != re_code) { // Return address no longer valid |
1100 int delta = code_handle->address() - re_code->address(); | 1100 int delta = code_handle->address() - re_code->address(); |
1101 // Overwrite the return address on the stack. | 1101 // Overwrite the return address on the stack. |
1102 *return_address += delta; | 1102 *return_address += delta; |
1103 } | 1103 } |
1104 | 1104 |
1105 if (result->IsException()) { | 1105 if (result->IsException()) { |
1106 return EXCEPTION; | 1106 return EXCEPTION; |
1107 } | 1107 } |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1291 } | 1291 } |
1292 | 1292 |
1293 | 1293 |
1294 #undef __ | 1294 #undef __ |
1295 | 1295 |
1296 #endif // V8_INTERPRETED_REGEXP | 1296 #endif // V8_INTERPRETED_REGEXP |
1297 | 1297 |
1298 }} // namespace v8::internal | 1298 }} // namespace v8::internal |
1299 | 1299 |
1300 #endif // V8_TARGET_ARCH_ARM | 1300 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |