| 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 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1092 template <typename T> | 1092 template <typename T> |
| 1093 static T& frame_entry(Address re_frame, int frame_offset) { | 1093 static T& frame_entry(Address re_frame, int frame_offset) { |
| 1094 return reinterpret_cast<T&>(Memory::int32_at(re_frame + frame_offset)); | 1094 return reinterpret_cast<T&>(Memory::int32_at(re_frame + frame_offset)); |
| 1095 } | 1095 } |
| 1096 | 1096 |
| 1097 | 1097 |
| 1098 int RegExpMacroAssemblerIA32::CheckStackGuardState(Address* return_address, | 1098 int RegExpMacroAssemblerIA32::CheckStackGuardState(Address* return_address, |
| 1099 Code* re_code, | 1099 Code* re_code, |
| 1100 Address re_frame) { | 1100 Address re_frame) { |
| 1101 Isolate* isolate = frame_entry<Isolate*>(re_frame, kIsolate); | 1101 Isolate* isolate = frame_entry<Isolate*>(re_frame, kIsolate); |
| 1102 ASSERT(isolate == Isolate::Current()); | |
| 1103 if (isolate->stack_guard()->IsStackOverflow()) { | 1102 if (isolate->stack_guard()->IsStackOverflow()) { |
| 1104 isolate->StackOverflow(); | 1103 isolate->StackOverflow(); |
| 1105 return EXCEPTION; | 1104 return EXCEPTION; |
| 1106 } | 1105 } |
| 1107 | 1106 |
| 1108 // If not real stack overflow the stack guard was used to interrupt | 1107 // If not real stack overflow the stack guard was used to interrupt |
| 1109 // execution for another purpose. | 1108 // execution for another purpose. |
| 1110 | 1109 |
| 1111 // If this is a direct call from JavaScript retry the RegExp forcing the call | 1110 // If this is a direct call from JavaScript retry the RegExp forcing the call |
| 1112 // through the runtime system. Currently the direct call cannot handle a GC. | 1111 // through the runtime system. Currently the direct call cannot handle a GC. |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 } | 1322 } |
| 1324 | 1323 |
| 1325 | 1324 |
| 1326 #undef __ | 1325 #undef __ |
| 1327 | 1326 |
| 1328 #endif // V8_INTERPRETED_REGEXP | 1327 #endif // V8_INTERPRETED_REGEXP |
| 1329 | 1328 |
| 1330 }} // namespace v8::internal | 1329 }} // namespace v8::internal |
| 1331 | 1330 |
| 1332 #endif // V8_TARGET_ARCH_IA32 | 1331 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |