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

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

Issue 2331033002: [interpreter] Merge {OsrPoll} with {Jump} bytecode. (Closed)
Patch Set: One more test. Created 4 years, 3 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 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 UNIQUE_VAR() \ 65 UNIQUE_VAR() \
66 UNIQUE_VAR() 66 UNIQUE_VAR()
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_ignition_osr = false; // TODO(4764): Disabled for now.
76 i::FLAG_always_opt = false; 75 i::FLAG_always_opt = false;
77 i::FLAG_allow_natives_syntax = true; 76 i::FLAG_allow_natives_syntax = true;
78 CcTest::i_isolate()->interpreter()->Initialize(); 77 CcTest::i_isolate()->interpreter()->Initialize();
79 } 78 }
80 }; 79 };
81 80
82 void SkipGoldenFileHeader(std::istream& stream) { // NOLINT 81 void SkipGoldenFileHeader(std::istream& stream) { // NOLINT
83 std::string line; 82 std::string line;
84 int separators_seen = 0; 83 int separators_seen = 0;
85 while (std::getline(stream, line)) { 84 while (std::getline(stream, line)) {
(...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after
2185 "f();\n", 2184 "f();\n",
2186 }; 2185 };
2187 2186
2188 CHECK(CompareTexts(BuildActual(printer, snippets), 2187 CHECK(CompareTexts(BuildActual(printer, snippets),
2189 LoadGolden("Generators.golden"))); 2188 LoadGolden("Generators.golden")));
2190 } 2189 }
2191 2190
2192 } // namespace interpreter 2191 } // namespace interpreter
2193 } // namespace internal 2192 } // namespace internal
2194 } // namespace v8 2193 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/WideRegisters.golden ('k') | test/cctest/interpreter/test-interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698