OLD | NEW |
1 // Copyright 2006-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2010 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 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1043 // Current string. | 1043 // Current string. |
1044 bool is_ascii = subject->IsAsciiRepresentationUnderneath(); | 1044 bool is_ascii = subject->IsAsciiRepresentationUnderneath(); |
1045 | 1045 |
1046 ASSERT(re_code->instruction_start() <= *return_address); | 1046 ASSERT(re_code->instruction_start() <= *return_address); |
1047 ASSERT(*return_address <= | 1047 ASSERT(*return_address <= |
1048 re_code->instruction_start() + re_code->instruction_size()); | 1048 re_code->instruction_start() + re_code->instruction_size()); |
1049 | 1049 |
1050 MaybeObject* result = Execution::HandleStackGuardInterrupt(); | 1050 MaybeObject* result = Execution::HandleStackGuardInterrupt(); |
1051 | 1051 |
1052 if (*code_handle != re_code) { // Return address no longer valid. | 1052 if (*code_handle != re_code) { // Return address no longer valid. |
1053 int delta = *code_handle - re_code; | 1053 int delta = code_handle->address() - re_code->address(); |
1054 // Overwrite the return address on the stack. | 1054 // Overwrite the return address on the stack. |
1055 *return_address += delta; | 1055 *return_address += delta; |
1056 } | 1056 } |
1057 | 1057 |
1058 if (result->IsException()) { | 1058 if (result->IsException()) { |
1059 return EXCEPTION; | 1059 return EXCEPTION; |
1060 } | 1060 } |
1061 | 1061 |
1062 Handle<String> subject_tmp = subject; | 1062 Handle<String> subject_tmp = subject; |
1063 int slice_offset = 0; | 1063 int slice_offset = 0; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 } | 1255 } |
1256 | 1256 |
1257 | 1257 |
1258 #undef __ | 1258 #undef __ |
1259 | 1259 |
1260 #endif // V8_INTERPRETED_REGEXP | 1260 #endif // V8_INTERPRETED_REGEXP |
1261 | 1261 |
1262 }} // namespace v8::internal | 1262 }} // namespace v8::internal |
1263 | 1263 |
1264 #endif // V8_TARGET_ARCH_MIPS | 1264 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |