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

Side by Side Diff: test/cctest/test-parsing.cc

Issue 2268513002: Cleanup: Move ParseInfo to a separate file. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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
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 <stdio.h> 28 #include <stdio.h>
29 #include <stdlib.h> 29 #include <stdlib.h>
30 #include <string.h> 30 #include <string.h>
31 31
32 #include <memory> 32 #include <memory>
33 33
34 #include "src/v8.h" 34 #include "src/v8.h"
35 35
36 #include "src/ast/ast.h"
37 #include "src/ast/ast-numbering.h" 36 #include "src/ast/ast-numbering.h"
38 #include "src/ast/ast-value-factory.h" 37 #include "src/ast/ast-value-factory.h"
38 #include "src/ast/ast.h"
39 #include "src/compiler.h" 39 #include "src/compiler.h"
40 #include "src/execution.h" 40 #include "src/execution.h"
41 #include "src/isolate.h" 41 #include "src/isolate.h"
42 #include "src/objects.h" 42 #include "src/objects.h"
43 #include "src/parsing/parse-info.h"
43 #include "src/parsing/parser.h" 44 #include "src/parsing/parser.h"
44 #include "src/parsing/preparser.h" 45 #include "src/parsing/preparser.h"
45 #include "src/parsing/rewriter.h" 46 #include "src/parsing/rewriter.h"
46 #include "src/parsing/scanner-character-streams.h" 47 #include "src/parsing/scanner-character-streams.h"
47 #include "src/parsing/token.h" 48 #include "src/parsing/token.h"
48 #include "src/utils.h" 49 #include "src/utils.h"
49 50
50 #include "test/cctest/cctest.h" 51 #include "test/cctest/cctest.h"
51 52
52 TEST(ScanKeywords) { 53 TEST(ScanKeywords) {
(...skipping 8138 matching lines...) Expand 10 before | Expand all | Expand 10 after
8191 "(a,);", 8192 "(a,);",
8192 "(a,b,c,);", 8193 "(a,b,c,);",
8193 NULL 8194 NULL
8194 }; 8195 };
8195 // clang-format on 8196 // clang-format on
8196 8197
8197 static const ParserFlag always_flags[] = {kAllowHarmonyTrailingCommas}; 8198 static const ParserFlag always_flags[] = {kAllowHarmonyTrailingCommas};
8198 RunParserSyncTest(context_data, data, kError, NULL, 0, always_flags, 8199 RunParserSyncTest(context_data, data, kError, NULL, 0, always_flags,
8199 arraysize(always_flags)); 8200 arraysize(always_flags));
8200 } 8201 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698