Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: test/fuzzer/parser.cc

Issue 1927933002: Add GC request to libFuzzers in attempt to avoid parasitic coverage. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/fuzzer/json.cc ('k') | test/fuzzer/regexp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <limits.h>
6 #include <stddef.h> 6 #include <stddef.h>
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "include/v8.h" 9 #include "include/v8.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 20 matching lines...) Expand all
31 v8::internal::Vector<const uint8_t>(data, static_cast<int>(size))); 31 v8::internal::Vector<const uint8_t>(data, static_cast<int>(size)));
32 if (source.is_null()) return 0; 32 if (source.is_null()) return 0;
33 33
34 v8::internal::Handle<v8::internal::Script> script = 34 v8::internal::Handle<v8::internal::Script> script =
35 factory->NewScript(source.ToHandleChecked()); 35 factory->NewScript(source.ToHandleChecked());
36 v8::internal::Zone zone(i_isolate->allocator()); 36 v8::internal::Zone zone(i_isolate->allocator());
37 v8::internal::ParseInfo info(&zone, script); 37 v8::internal::ParseInfo info(&zone, script);
38 info.set_global(); 38 info.set_global();
39 v8::internal::Parser parser(&info); 39 v8::internal::Parser parser(&info);
40 parser.Parse(&info); 40 parser.Parse(&info);
41 isolate->RequestGarbageCollectionForTesting(
42 v8::Isolate::kFullGarbageCollection);
41 return 0; 43 return 0;
42 } 44 }
OLDNEW
« no previous file with comments | « test/fuzzer/json.cc ('k') | test/fuzzer/regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698