OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |