OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef INTERPRETER_BYTECODE_EXPECTATIONS_H_ | |
6 #define INTERPRETER_BYTECODE_EXPECTATIONS_H_ | |
7 | |
8 #include <iostream> | |
9 #include <vector> | |
10 | |
11 namespace v8 { | |
12 namespace internal { | |
13 namespace interpreter { | |
14 | |
15 enum ConstantPoolType { | |
16 kConstantPoolTypeUnknown, | |
17 kConstantPoolTypeString, | |
18 kConstantPoolTypeInteger, | |
19 kConstantPoolTypeDouble, | |
20 kConstantPoolTypeMixed, | |
21 }; | |
22 | |
23 struct TestInput { | |
24 std::string snippet; | |
rmcilroy
2016/02/12 12:33:10
Fields go at the end. Also append "_" to the end o
Stefano Sanfilippo
2016/02/12 14:23:59
This struct was removed in the refactoring.
| |
25 ConstantPoolType const_pool_type = kConstantPoolTypeMixed; | |
26 | |
27 TestInput(const std::string& s, ConstantPoolType p) | |
28 : snippet(s), const_pool_type(p) {} | |
29 }; | |
30 | |
31 void GenerateExpectationsFile(std::ostream& stream, | |
rmcilroy
2016/02/12 12:33:10
As discussed, let's refactor this into a class and
Stefano Sanfilippo
2016/02/12 14:23:59
Done.
| |
32 const std::vector<TestInput>& test_list, | |
33 const char* exec_path); | |
34 | |
35 } // namespace interpreter | |
36 } // namespace internal | |
37 } // namespace v8 | |
38 | |
39 #endif | |
OLD | NEW |