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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 // Current string. | 1042 // Current string. |
1043 bool is_ascii = subject->IsAsciiRepresentationUnderneath(); | 1043 bool is_ascii = subject->IsAsciiRepresentationUnderneath(); |
1044 | 1044 |
1045 ASSERT(re_code->instruction_start() <= *return_address); | 1045 ASSERT(re_code->instruction_start() <= *return_address); |
1046 ASSERT(*return_address <= | 1046 ASSERT(*return_address <= |
1047 re_code->instruction_start() + re_code->instruction_size()); | 1047 re_code->instruction_start() + re_code->instruction_size()); |
1048 | 1048 |
1049 MaybeObject* result = Execution::HandleStackGuardInterrupt(); | 1049 MaybeObject* result = Execution::HandleStackGuardInterrupt(); |
1050 | 1050 |
1051 if (*code_handle != re_code) { // Return address no longer valid | 1051 if (*code_handle != re_code) { // Return address no longer valid |
1052 int delta = *code_handle - re_code; | 1052 int delta = code_handle->address() - re_code->address(); |
1053 // Overwrite the return address on the stack. | 1053 // Overwrite the return address on the stack. |
1054 *return_address += delta; | 1054 *return_address += delta; |
1055 } | 1055 } |
1056 | 1056 |
1057 if (result->IsException()) { | 1057 if (result->IsException()) { |
1058 return EXCEPTION; | 1058 return EXCEPTION; |
1059 } | 1059 } |
1060 | 1060 |
1061 Handle<String> subject_tmp = subject; | 1061 Handle<String> subject_tmp = subject; |
1062 int slice_offset = 0; | 1062 int slice_offset = 0; |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1290 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); | 1290 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); |
1291 } | 1291 } |
1292 | 1292 |
1293 #undef __ | 1293 #undef __ |
1294 | 1294 |
1295 #endif // V8_INTERPRETED_REGEXP | 1295 #endif // V8_INTERPRETED_REGEXP |
1296 | 1296 |
1297 }} // namespace v8::internal | 1297 }} // namespace v8::internal |
1298 | 1298 |
1299 #endif // V8_TARGET_ARCH_ARM | 1299 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |