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

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

Issue 1481613002: Create ast/ and parsing/ subdirectories and move appropriate files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years 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/cctest/test-lockers.cc ('k') | test/cctest/test-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 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 16 matching lines...) Expand all
27 27
28 // TODO(mythria): Remove this define after this flag is turned on globally 28 // TODO(mythria): Remove this define after this flag is turned on globally
29 #define V8_IMMINENT_DEPRECATION_WARNINGS 29 #define V8_IMMINENT_DEPRECATION_WARNINGS
30 30
31 #include <stdio.h> 31 #include <stdio.h>
32 #include <stdlib.h> 32 #include <stdlib.h>
33 #include <string.h> 33 #include <string.h>
34 34
35 #include "src/v8.h" 35 #include "src/v8.h"
36 36
37 #include "src/ast.h" 37 #include "src/ast/ast.h"
38 #include "src/ast-numbering.h" 38 #include "src/ast/ast-numbering.h"
39 #include "src/ast-value-factory.h" 39 #include "src/ast/ast-value-factory.h"
40 #include "src/compiler.h" 40 #include "src/compiler.h"
41 #include "src/execution.h" 41 #include "src/execution.h"
42 #include "src/isolate.h" 42 #include "src/isolate.h"
43 #include "src/objects.h" 43 #include "src/objects.h"
44 #include "src/parser.h" 44 #include "src/parsing/parser.h"
45 #include "src/preparser.h" 45 #include "src/parsing/preparser.h"
46 #include "src/rewriter.h" 46 #include "src/parsing/rewriter.h"
47 #include "src/scanner-character-streams.h" 47 #include "src/parsing/scanner-character-streams.h"
48 #include "src/token.h" 48 #include "src/parsing/token.h"
49 #include "src/utils.h" 49 #include "src/utils.h"
50 50
51 #include "test/cctest/cctest.h" 51 #include "test/cctest/cctest.h"
52 52
53 TEST(ScanKeywords) { 53 TEST(ScanKeywords) {
54 struct KeywordToken { 54 struct KeywordToken {
55 const char* keyword; 55 const char* keyword;
56 i::Token::Value token; 56 i::Token::Value token;
57 }; 57 };
58 58
(...skipping 7420 matching lines...) Expand 10 before | Expand all | Expand 10 after
7479 "var publ\\u0069c = 1;", 7479 "var publ\\u0069c = 1;",
7480 "var { publ\\u0069c } = {};", 7480 "var { publ\\u0069c } = {};",
7481 NULL}; 7481 NULL};
7482 RunParserSyncTest(sloppy_context_data, valid_data, kSuccess, NULL, 0, 7482 RunParserSyncTest(sloppy_context_data, valid_data, kSuccess, NULL, 0,
7483 always_flags, arraysize(always_flags)); 7483 always_flags, arraysize(always_flags));
7484 RunParserSyncTest(strict_context_data, valid_data, kError, NULL, 0, 7484 RunParserSyncTest(strict_context_data, valid_data, kError, NULL, 0,
7485 always_flags, arraysize(always_flags)); 7485 always_flags, arraysize(always_flags));
7486 RunModuleParserSyncTest(strict_context_data, valid_data, kError, NULL, 0, 7486 RunModuleParserSyncTest(strict_context_data, valid_data, kError, NULL, 0,
7487 always_flags, arraysize(always_flags)); 7487 always_flags, arraysize(always_flags));
7488 } 7488 }
OLDNEW
« no previous file with comments | « test/cctest/test-lockers.cc ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698