| 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 15 matching lines...) Expand all Loading... |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #include <set> | 28 #include <set> |
| 29 | 29 |
| 30 #include "v8.h" | 30 #include "v8.h" |
| 31 | 31 |
| 32 #include "ast.h" | 32 #include "ast.h" |
| 33 #include "execution.h" | 33 #include "execution.h" |
| 34 #include "factory.h" | 34 #include "factory.h" |
| 35 #include "jsregexp.h" | 35 #include "jsregexp.h" |
| 36 #include "third_party/jscre/pcre.h" | |
| 37 #include "platform.h" | 36 #include "platform.h" |
| 38 #include "runtime.h" | 37 #include "runtime.h" |
| 39 #include "top.h" | 38 #include "top.h" |
| 40 #include "compilation-cache.h" | 39 #include "compilation-cache.h" |
| 41 #include "string-stream.h" | 40 #include "string-stream.h" |
| 42 | 41 |
| 42 // Including pcre.h undefines DEBUG to avoid getting debug output from |
| 43 // the JSCRE implementation. Make sure to redefine it in debug mode |
| 44 // after having included the header file. |
| 45 #ifdef DEBUG |
| 46 #include "third_party/jscre/pcre.h" |
| 47 #define DEBUG |
| 48 #else |
| 49 #include "third_party/jscre/pcre.h" |
| 50 #endif |
| 43 | 51 |
| 44 namespace v8 { namespace internal { | 52 namespace v8 { namespace internal { |
| 45 | 53 |
| 46 | 54 |
| 47 #define CAPTURE_INDEX 0 | 55 #define CAPTURE_INDEX 0 |
| 48 #define INTERNAL_INDEX 1 | 56 #define INTERNAL_INDEX 1 |
| 49 | 57 |
| 50 static Failure* malloc_failure; | 58 static Failure* malloc_failure; |
| 51 | 59 |
| 52 static void* JSREMalloc(size_t size) { | 60 static void* JSREMalloc(size_t size) { |
| (...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1021 template | 1029 template |
| 1022 bool RegExpEngine::Execute<const char>(RegExpNode<const char>* start, | 1030 bool RegExpEngine::Execute<const char>(RegExpNode<const char>* start, |
| 1023 Vector<const char> input); | 1031 Vector<const char> input); |
| 1024 | 1032 |
| 1025 template | 1033 template |
| 1026 bool RegExpEngine::Execute<const uc16>(RegExpNode<const uc16>* start, | 1034 bool RegExpEngine::Execute<const uc16>(RegExpNode<const uc16>* start, |
| 1027 Vector<const uc16> input); | 1035 Vector<const uc16> input); |
| 1028 | 1036 |
| 1029 | 1037 |
| 1030 }} // namespace v8::internal | 1038 }} // namespace v8::internal |
| OLD | NEW |