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

Side by Side Diff: test/cctest/interpreter/test-bytecode-generator.cc

Issue 2460403002: [modules] Add namespace import snippet to test-bytecode-generator. (Closed)
Patch Set: Created 4 years, 1 month 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/interpreter/bytecode_expectations/Modules.golden ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 <fstream> 5 #include <fstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/interpreter/bytecode-array-iterator.h" 9 #include "src/interpreter/bytecode-array-iterator.h"
10 #include "src/interpreter/bytecode-generator.h" 10 #include "src/interpreter/bytecode-generator.h"
(...skipping 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2231 "foo++;\n" 2231 "foo++;\n"
2232 "{ let x; { foo++ } };\n", 2232 "{ let x; { foo++ } };\n",
2233 2233
2234 "export default (function () {});\n", 2234 "export default (function () {});\n",
2235 2235
2236 "export default (class {});\n", 2236 "export default (class {});\n",
2237 2237
2238 "export {foo as goo} from \"bar\"\n", 2238 "export {foo as goo} from \"bar\"\n",
2239 2239
2240 "export * from \"bar\"\n", 2240 "export * from \"bar\"\n",
2241
2242 "import * as foo from \"bar\"\n"
2243 "foo.f(foo, foo.x);\n",
2241 }; 2244 };
2242 2245
2243 CHECK(CompareTexts(BuildActual(printer, snippets), 2246 CHECK(CompareTexts(BuildActual(printer, snippets),
2244 LoadGolden("Modules.golden"))); 2247 LoadGolden("Modules.golden")));
2245 } 2248 }
2246 2249
2247 } // namespace interpreter 2250 } // namespace interpreter
2248 } // namespace internal 2251 } // namespace internal
2249 } // namespace v8 2252 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Modules.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698