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 ARM | 40 #ifdef V8_ARCH_ARM |
41 return false; | 41 return false; |
42 #else | 42 #endif |
| 43 #ifdef V8_ARCH_X64 |
| 44 return false; |
| 45 #endif |
| 46 #ifdef V8_ARCH_IA32 |
43 return FLAG_regexp_native; | 47 return FLAG_regexp_native; |
44 #endif | 48 #endif |
45 } | 49 } |
46 // Creates a regular expression literal in the old space. | 50 // Creates a regular expression literal in the old space. |
47 // This function calls the garbage collector if necessary. | 51 // This function calls the garbage collector if necessary. |
48 static Handle<Object> CreateRegExpLiteral(Handle<JSFunction> constructor, | 52 static Handle<Object> CreateRegExpLiteral(Handle<JSFunction> constructor, |
49 Handle<String> pattern, | 53 Handle<String> pattern, |
50 Handle<String> flags, | 54 Handle<String> flags, |
51 bool* has_pending_exception); | 55 bool* has_pending_exception); |
52 | 56 |
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1363 Handle<String> pattern, | 1367 Handle<String> pattern, |
1364 bool is_ascii); | 1368 bool is_ascii); |
1365 | 1369 |
1366 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); | 1370 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); |
1367 }; | 1371 }; |
1368 | 1372 |
1369 | 1373 |
1370 } } // namespace v8::internal | 1374 } } // namespace v8::internal |
1371 | 1375 |
1372 #endif // V8_JSREGEXP_H_ | 1376 #endif // V8_JSREGEXP_H_ |
OLD | NEW |