OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <limits.h> |
5 #include <stddef.h> | 6 #include <stddef.h> |
6 #include <stdint.h> | 7 #include <stdint.h> |
7 | 8 |
8 #include "include/v8.h" | 9 #include "include/v8.h" |
9 #include "src/factory.h" | 10 #include "src/factory.h" |
10 #include "src/objects-inl.h" | 11 #include "src/objects-inl.h" |
11 #include "src/objects.h" | 12 #include "src/objects.h" |
12 #include "src/regexp/jsregexp.h" | 13 #include "src/regexp/jsregexp.h" |
13 #include "test/fuzzer/fuzzer-support.h" | 14 #include "test/fuzzer/fuzzer-support.h" |
14 | 15 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 i::MaybeHandle<i::JSRegExp> maybe_regexp = | 56 i::MaybeHandle<i::JSRegExp> maybe_regexp = |
56 i::JSRegExp::New(source, static_cast<i::JSRegExp::Flags>(flags)); | 57 i::JSRegExp::New(source, static_cast<i::JSRegExp::Flags>(flags)); |
57 i::Handle<i::JSRegExp> regexp; | 58 i::Handle<i::JSRegExp> regexp; |
58 if (!maybe_regexp.ToHandle(®exp)) continue; | 59 if (!maybe_regexp.ToHandle(®exp)) continue; |
59 USE(i::RegExpImpl::Exec(regexp, one_byte, 0, results_array).is_null() && | 60 USE(i::RegExpImpl::Exec(regexp, one_byte, 0, results_array).is_null() && |
60 i::RegExpImpl::Exec(regexp, two_byte, 0, results_array).is_null()); | 61 i::RegExpImpl::Exec(regexp, two_byte, 0, results_array).is_null()); |
61 } | 62 } |
62 | 63 |
63 return 0; | 64 return 0; |
64 } | 65 } |
OLD | NEW |