| 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/objects.h" | 10 #include "src/objects.h" | 
| 10 #include "src/parsing/parser.h" | 11 #include "src/parsing/parser.h" | 
| 11 #include "src/parsing/preparser.h" | 12 #include "src/parsing/preparser.h" | 
| 12 #include "test/fuzzer/fuzzer-support.h" | 13 #include "test/fuzzer/fuzzer-support.h" | 
| 13 | 14 | 
| 14 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { | 15 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
| 32 | 33 | 
| 33   v8::internal::Handle<v8::internal::Script> script = | 34   v8::internal::Handle<v8::internal::Script> script = | 
| 34       factory->NewScript(source.ToHandleChecked()); | 35       factory->NewScript(source.ToHandleChecked()); | 
| 35   v8::internal::Zone zone; | 36   v8::internal::Zone zone; | 
| 36   v8::internal::ParseInfo info(&zone, script); | 37   v8::internal::ParseInfo info(&zone, script); | 
| 37   info.set_global(); | 38   info.set_global(); | 
| 38   v8::internal::Parser parser(&info); | 39   v8::internal::Parser parser(&info); | 
| 39   parser.Parse(&info); | 40   parser.Parse(&info); | 
| 40   return 0; | 41   return 0; | 
| 41 } | 42 } | 
| OLD | NEW | 
|---|