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

Side by Side Diff: test/cctest/interpreter/bytecode-expectations-printer.h

Issue 1717293002: [Interpreter] Refactor bytecode generator test suite. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Reflow REPEAT_249 macro. Created 4 years, 10 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/cctest.isolate ('k') | test/cctest/interpreter/bytecode-expectations-printer.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #ifndef TEST_CCTEST_INTERPRETER_BYTECODE_EXPECTATIONS_PRINTER_H_ 5 #ifndef TEST_CCTEST_INTERPRETER_BYTECODE_EXPECTATIONS_PRINTER_H_
6 #define TEST_CCTEST_INTERPRETER_BYTECODE_EXPECTATIONS_PRINTER_H_ 6 #define TEST_CCTEST_INTERPRETER_BYTECODE_EXPECTATIONS_PRINTER_H_
7 7
8 #include <iostream> 8 #include <iostream>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 kNumber, 29 kNumber,
30 kMixed, 30 kMixed,
31 }; 31 };
32 32
33 BytecodeExpectationsPrinter(v8::Isolate* i, 33 BytecodeExpectationsPrinter(v8::Isolate* i,
34 ConstantPoolType t = ConstantPoolType::kMixed) 34 ConstantPoolType t = ConstantPoolType::kMixed)
35 : isolate_(i), 35 : isolate_(i),
36 const_pool_type_(t), 36 const_pool_type_(t),
37 execute_(true), 37 execute_(true),
38 wrap_(true), 38 wrap_(true),
39 top_level_(false),
39 test_function_name_(kDefaultTopFunctionName) {} 40 test_function_name_(kDefaultTopFunctionName) {}
40 41
41 void PrintExpectation(std::ostream& stream, // NOLINT 42 void PrintExpectation(std::ostream& stream, // NOLINT
42 const std::string& snippet) const; 43 const std::string& snippet) const;
43 44
44 void set_constant_pool_type(ConstantPoolType const_pool_type) { 45 void set_constant_pool_type(ConstantPoolType const_pool_type) {
45 const_pool_type_ = const_pool_type; 46 const_pool_type_ = const_pool_type;
46 } 47 }
47 ConstantPoolType const_pool_type() const { return const_pool_type_; } 48 ConstantPoolType const_pool_type() const { return const_pool_type_; }
48 49
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 std::string test_function_name_; 111 std::string test_function_name_;
111 112
112 static const char* const kDefaultTopFunctionName; 113 static const char* const kDefaultTopFunctionName;
113 }; 114 };
114 115
115 } // namespace interpreter 116 } // namespace interpreter
116 } // namespace internal 117 } // namespace internal
117 } // namespace v8 118 } // namespace v8
118 119
119 #endif // TEST_CCTEST_INTERPRETER_BYTECODE_EXPECTATIONS_PRINTER_H_ 120 #endif // TEST_CCTEST_INTERPRETER_BYTECODE_EXPECTATIONS_PRINTER_H_
OLDNEW
« no previous file with comments | « test/cctest/cctest.isolate ('k') | test/cctest/interpreter/bytecode-expectations-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698