| 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 24 matching lines...) Expand all Loading... |
| 35 namespace internal { | 35 namespace internal { |
| 36 | 36 |
| 37 | 37 |
| 38 class RegExpMacroAssembler; | 38 class RegExpMacroAssembler; |
| 39 | 39 |
| 40 | 40 |
| 41 class RegExpImpl { | 41 class RegExpImpl { |
| 42 public: | 42 public: |
| 43 // Whether V8 is compiled with native regexp support or not. | 43 // Whether V8 is compiled with native regexp support or not. |
| 44 static bool UsesNativeRegExp() { | 44 static bool UsesNativeRegExp() { |
| 45 #ifdef V8_NATIVE_REGEXP | 45 #ifdef V8_INTERPRETED_REGEXP |
| 46 return false; |
| 47 #else |
| 46 return true; | 48 return true; |
| 47 #else | |
| 48 return false; | |
| 49 #endif | 49 #endif |
| 50 } | 50 } |
| 51 | 51 |
| 52 // Creates a regular expression literal in the old space. | 52 // Creates a regular expression literal in the old space. |
| 53 // This function calls the garbage collector if necessary. | 53 // This function calls the garbage collector if necessary. |
| 54 static Handle<Object> CreateRegExpLiteral(Handle<JSFunction> constructor, | 54 static Handle<Object> CreateRegExpLiteral(Handle<JSFunction> constructor, |
| 55 Handle<String> pattern, | 55 Handle<String> pattern, |
| 56 Handle<String> flags, | 56 Handle<String> flags, |
| 57 bool* has_pending_exception); | 57 bool* has_pending_exception); |
| 58 | 58 |
| (...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1454 int offsets_vector_length_; | 1454 int offsets_vector_length_; |
| 1455 static int static_offsets_vector_[kStaticOffsetsVectorSize]; | 1455 static int static_offsets_vector_[kStaticOffsetsVectorSize]; |
| 1456 | 1456 |
| 1457 friend class ExternalReference; | 1457 friend class ExternalReference; |
| 1458 }; | 1458 }; |
| 1459 | 1459 |
| 1460 | 1460 |
| 1461 } } // namespace v8::internal | 1461 } } // namespace v8::internal |
| 1462 | 1462 |
| 1463 #endif // V8_JSREGEXP_H_ | 1463 #endif // V8_JSREGEXP_H_ |
| OLD | NEW |