| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 namespace v8 { namespace internal { | 31 namespace v8 { namespace internal { |
| 32 | 32 |
| 33 | 33 |
| 34 class RegExpMacroAssembler; | 34 class RegExpMacroAssembler; |
| 35 | 35 |
| 36 | 36 |
| 37 class RegExpImpl { | 37 class RegExpImpl { |
| 38 public: | 38 public: |
| 39 static inline bool UseNativeRegexp() { | 39 static inline bool UseNativeRegexp() { |
| 40 #ifdef V8_ARCH_ARM | 40 #ifdef V8_TARGET_ARCH_IA32 |
| 41 return false; | |
| 42 #endif | |
| 43 #ifdef V8_ARCH_X64 | |
| 44 return false; | |
| 45 #endif | |
| 46 #ifdef V8_ARCH_IA32 | |
| 47 return FLAG_regexp_native; | 41 return FLAG_regexp_native; |
| 42 #else |
| 43 return false; |
| 48 #endif | 44 #endif |
| 49 } | 45 } |
| 50 // Creates a regular expression literal in the old space. | 46 // Creates a regular expression literal in the old space. |
| 51 // This function calls the garbage collector if necessary. | 47 // This function calls the garbage collector if necessary. |
| 52 static Handle<Object> CreateRegExpLiteral(Handle<JSFunction> constructor, | 48 static Handle<Object> CreateRegExpLiteral(Handle<JSFunction> constructor, |
| 53 Handle<String> pattern, | 49 Handle<String> pattern, |
| 54 Handle<String> flags, | 50 Handle<String> flags, |
| 55 bool* has_pending_exception); | 51 bool* has_pending_exception); |
| 56 | 52 |
| 57 // Returns a string representation of a regular expression. | 53 // Returns a string representation of a regular expression. |
| (...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 Handle<String> pattern, | 1363 Handle<String> pattern, |
| 1368 bool is_ascii); | 1364 bool is_ascii); |
| 1369 | 1365 |
| 1370 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); | 1366 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); |
| 1371 }; | 1367 }; |
| 1372 | 1368 |
| 1373 | 1369 |
| 1374 } } // namespace v8::internal | 1370 } } // namespace v8::internal |
| 1375 | 1371 |
| 1376 #endif // V8_JSREGEXP_H_ | 1372 #endif // V8_JSREGEXP_H_ |
| OLD | NEW |