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

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

Issue 1827143002: Revert of [Interpreter] Remove separate Ignition snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/interpreter-tester.cc ('k') | tools/gyp/v8.gyp » ('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 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/compiler.h" 9 #include "src/compiler.h"
10 #include "src/interpreter/bytecode-array-iterator.h" 10 #include "src/interpreter/bytecode-array-iterator.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 static const char* kGoldenFileDirectory = 68 static const char* kGoldenFileDirectory =
69 "test/cctest/interpreter/bytecode_expectations/"; 69 "test/cctest/interpreter/bytecode_expectations/";
70 70
71 class InitializedIgnitionHandleScope : public InitializedHandleScope { 71 class InitializedIgnitionHandleScope : public InitializedHandleScope {
72 public: 72 public:
73 InitializedIgnitionHandleScope() { 73 InitializedIgnitionHandleScope() {
74 i::FLAG_ignition = true; 74 i::FLAG_ignition = true;
75 i::FLAG_always_opt = false; 75 i::FLAG_always_opt = false;
76 i::FLAG_allow_natives_syntax = true; 76 i::FLAG_allow_natives_syntax = true;
77 CcTest::i_isolate()->interpreter()->Initialize();
77 } 78 }
78 }; 79 };
79 80
80 void SkipGoldenFileHeader(std::istream& stream) { // NOLINT 81 void SkipGoldenFileHeader(std::istream& stream) { // NOLINT
81 std::string line; 82 std::string line;
82 int separators_seen = 0; 83 int separators_seen = 0;
83 while (std::getline(stream, line)) { 84 while (std::getline(stream, line)) {
84 if (line == "---") separators_seen += 1; 85 if (line == "---") separators_seen += 1;
85 if (separators_seen == 2) return; 86 if (separators_seen == 2) return;
86 } 87 }
(...skipping 2062 matching lines...) Expand 10 before | Expand all | Expand 10 after
2149 "})();\n", 2150 "})();\n",
2150 }; 2151 };
2151 2152
2152 CHECK_EQ(BuildActual(printer, snippets), 2153 CHECK_EQ(BuildActual(printer, snippets),
2153 LoadGolden("ClassAndSuperClass.golden")); 2154 LoadGolden("ClassAndSuperClass.golden"));
2154 } 2155 }
2155 2156
2156 } // namespace interpreter 2157 } // namespace interpreter
2157 } // namespace internal 2158 } // namespace internal
2158 } // namespace v8 2159 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/interpreter/interpreter-tester.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698