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 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 template <typename T> | 989 template <typename T> |
990 static T& frame_entry(Address re_frame, int frame_offset) { | 990 static T& frame_entry(Address re_frame, int frame_offset) { |
991 return reinterpret_cast<T&>(Memory::int32_at(re_frame + frame_offset)); | 991 return reinterpret_cast<T&>(Memory::int32_at(re_frame + frame_offset)); |
992 } | 992 } |
993 | 993 |
994 | 994 |
995 int RegExpMacroAssemblerARM::CheckStackGuardState(Address* return_address, | 995 int RegExpMacroAssemblerARM::CheckStackGuardState(Address* return_address, |
996 Code* re_code, | 996 Code* re_code, |
997 Address re_frame) { | 997 Address re_frame) { |
998 if (Isolate::Current()->stack_guard()->IsStackOverflow()) { | 998 if (Isolate::Current()->stack_guard()->IsStackOverflow()) { |
999 Top::StackOverflow(); | 999 Isolate::Current()->StackOverflow(); |
1000 return EXCEPTION; | 1000 return EXCEPTION; |
1001 } | 1001 } |
1002 | 1002 |
1003 // If not real stack overflow the stack guard was used to interrupt | 1003 // If not real stack overflow the stack guard was used to interrupt |
1004 // execution for another purpose. | 1004 // execution for another purpose. |
1005 | 1005 |
1006 // If this is a direct call from JavaScript retry the RegExp forcing the call | 1006 // If this is a direct call from JavaScript retry the RegExp forcing the call |
1007 // through the runtime system. Currently the direct call cannot handle a GC. | 1007 // through the runtime system. Currently the direct call cannot handle a GC. |
1008 if (frame_entry<int>(re_frame, kDirectCall) == 1) { | 1008 if (frame_entry<int>(re_frame, kDirectCall) == 1) { |
1009 return RETRY; | 1009 return RETRY; |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); | 1253 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); |
1254 } | 1254 } |
1255 | 1255 |
1256 #undef __ | 1256 #undef __ |
1257 | 1257 |
1258 #endif // V8_INTERPRETED_REGEXP | 1258 #endif // V8_INTERPRETED_REGEXP |
1259 | 1259 |
1260 }} // namespace v8::internal | 1260 }} // namespace v8::internal |
1261 | 1261 |
1262 #endif // V8_TARGET_ARCH_ARM | 1262 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |