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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 template <typename T> | 1128 template <typename T> |
1129 static T& frame_entry(Address re_frame, int frame_offset) { | 1129 static T& frame_entry(Address re_frame, int frame_offset) { |
1130 return reinterpret_cast<T&>(Memory::int32_at(re_frame + frame_offset)); | 1130 return reinterpret_cast<T&>(Memory::int32_at(re_frame + frame_offset)); |
1131 } | 1131 } |
1132 | 1132 |
1133 | 1133 |
1134 int RegExpMacroAssemblerX64::CheckStackGuardState(Address* return_address, | 1134 int RegExpMacroAssemblerX64::CheckStackGuardState(Address* return_address, |
1135 Code* re_code, | 1135 Code* re_code, |
1136 Address re_frame) { | 1136 Address re_frame) { |
1137 if (Isolate::Current()->stack_guard()->IsStackOverflow()) { | 1137 if (Isolate::Current()->stack_guard()->IsStackOverflow()) { |
1138 Top::StackOverflow(); | 1138 Isolate::Current()->StackOverflow(); |
1139 return EXCEPTION; | 1139 return EXCEPTION; |
1140 } | 1140 } |
1141 | 1141 |
1142 // If not real stack overflow the stack guard was used to interrupt | 1142 // If not real stack overflow the stack guard was used to interrupt |
1143 // execution for another purpose. | 1143 // execution for another purpose. |
1144 | 1144 |
1145 // If this is a direct call from JavaScript retry the RegExp forcing the call | 1145 // If this is a direct call from JavaScript retry the RegExp forcing the call |
1146 // through the runtime system. Currently the direct call cannot handle a GC. | 1146 // through the runtime system. Currently the direct call cannot handle a GC. |
1147 if (frame_entry<int>(re_frame, kDirectCall) == 1) { | 1147 if (frame_entry<int>(re_frame, kDirectCall) == 1) { |
1148 return RETRY; | 1148 return RETRY; |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1366 } | 1366 } |
1367 } | 1367 } |
1368 | 1368 |
1369 #undef __ | 1369 #undef __ |
1370 | 1370 |
1371 #endif // V8_INTERPRETED_REGEXP | 1371 #endif // V8_INTERPRETED_REGEXP |
1372 | 1372 |
1373 }} // namespace v8::internal | 1373 }} // namespace v8::internal |
1374 | 1374 |
1375 #endif // V8_TARGET_ARCH_X64 | 1375 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |