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

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

Issue 1688383003: [Interpreter] Change the output format of generate-bytecode-expectations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Do not create a static lib target. 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698