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

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

Issue 2390163003: [interpreter] Remove redundant flag from bytecode cctest suite. (Closed)
Patch Set: Created 4 years, 2 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/cctest/interpreter/generate-bytecode-expectations.cc ('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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 702
703 CHECK(CompareTexts(BuildActual(printer, snippets), 703 CHECK(CompareTexts(BuildActual(printer, snippets),
704 LoadGolden("IfConditions.golden"))); 704 LoadGolden("IfConditions.golden")));
705 } 705 }
706 706
707 TEST(DeclareGlobals) { 707 TEST(DeclareGlobals) {
708 InitializedIgnitionHandleScope scope; 708 InitializedIgnitionHandleScope scope;
709 BytecodeExpectationsPrinter printer(CcTest::isolate()); 709 BytecodeExpectationsPrinter printer(CcTest::isolate());
710 printer.set_wrap(false); 710 printer.set_wrap(false);
711 printer.set_test_function_name("f"); 711 printer.set_test_function_name("f");
712 printer.set_execute(false);
713 printer.set_top_level(true); 712 printer.set_top_level(true);
714 713
715 const char* snippets[] = { 714 const char* snippets[] = {
716 "var a = 1;\n", 715 "var a = 1;\n",
717 716
718 "function f() {}\n", 717 "function f() {}\n",
719 718
720 "var a = 1;\n" 719 "var a = 1;\n"
721 "a=2;\n", 720 "a=2;\n",
722 721
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 1195
1197 CHECK(CompareTexts(BuildActual(printer, snippets), 1196 CHECK(CompareTexts(BuildActual(printer, snippets),
1198 LoadGolden("ObjectLiteralsWide.golden"))); 1197 LoadGolden("ObjectLiteralsWide.golden")));
1199 } 1198 }
1200 1199
1201 TEST(TopLevelObjectLiterals) { 1200 TEST(TopLevelObjectLiterals) {
1202 InitializedIgnitionHandleScope scope; 1201 InitializedIgnitionHandleScope scope;
1203 BytecodeExpectationsPrinter printer(CcTest::isolate()); 1202 BytecodeExpectationsPrinter printer(CcTest::isolate());
1204 printer.set_wrap(false); 1203 printer.set_wrap(false);
1205 printer.set_test_function_name("f"); 1204 printer.set_test_function_name("f");
1206 printer.set_execute(false);
1207 printer.set_top_level(true); 1205 printer.set_top_level(true);
1208 1206
1209 const char* snippets[] = { 1207 const char* snippets[] = {
1210 "var a = { func: function() { } };\n", 1208 "var a = { func: function() { } };\n",
1211 }; 1209 };
1212 1210
1213 CHECK(CompareTexts(BuildActual(printer, snippets), 1211 CHECK(CompareTexts(BuildActual(printer, snippets),
1214 LoadGolden("TopLevelObjectLiterals.golden"))); 1212 LoadGolden("TopLevelObjectLiterals.golden")));
1215 } 1213 }
1216 1214
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after
2201 "f();\n", 2199 "f();\n",
2202 }; 2200 };
2203 2201
2204 CHECK(CompareTexts(BuildActual(printer, snippets), 2202 CHECK(CompareTexts(BuildActual(printer, snippets),
2205 LoadGolden("Generators.golden"))); 2203 LoadGolden("Generators.golden")));
2206 } 2204 }
2207 2205
2208 } // namespace interpreter 2206 } // namespace interpreter
2209 } // namespace internal 2207 } // namespace internal
2210 } // namespace v8 2208 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/interpreter/generate-bytecode-expectations.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698