OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 | 1048 |
1049 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); | 1049 Handle<String> subject(frame_entry<String*>(re_frame, kInputString)); |
1050 | 1050 |
1051 // Current string. | 1051 // Current string. |
1052 bool is_ascii = subject->IsAsciiRepresentationUnderneath(); | 1052 bool is_ascii = subject->IsAsciiRepresentationUnderneath(); |
1053 | 1053 |
1054 ASSERT(re_code->instruction_start() <= *return_address); | 1054 ASSERT(re_code->instruction_start() <= *return_address); |
1055 ASSERT(*return_address <= | 1055 ASSERT(*return_address <= |
1056 re_code->instruction_start() + re_code->instruction_size()); | 1056 re_code->instruction_start() + re_code->instruction_size()); |
1057 | 1057 |
1058 MaybeObject* result = Execution::HandleStackGuardInterrupt(); | 1058 MaybeObject* result = Execution::HandleStackGuardInterrupt(isolate); |
1059 | 1059 |
1060 if (*code_handle != re_code) { // Return address no longer valid | 1060 if (*code_handle != re_code) { // Return address no longer valid |
1061 int delta = code_handle->address() - re_code->address(); | 1061 int delta = code_handle->address() - re_code->address(); |
1062 // Overwrite the return address on the stack. | 1062 // Overwrite the return address on the stack. |
1063 *return_address += delta; | 1063 *return_address += delta; |
1064 } | 1064 } |
1065 | 1065 |
1066 if (result->IsException()) { | 1066 if (result->IsException()) { |
1067 return EXCEPTION; | 1067 return EXCEPTION; |
1068 } | 1068 } |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1304 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); | 1304 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); |
1305 } | 1305 } |
1306 | 1306 |
1307 #undef __ | 1307 #undef __ |
1308 | 1308 |
1309 #endif // V8_INTERPRETED_REGEXP | 1309 #endif // V8_INTERPRETED_REGEXP |
1310 | 1310 |
1311 }} // namespace v8::internal | 1311 }} // namespace v8::internal |
1312 | 1312 |
1313 #endif // V8_TARGET_ARCH_ARM | 1313 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |