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 #include <cstring> | 5 #include <cstring> |
6 #include <fstream> | 6 #include <fstream> |
7 #include <memory> | 7 #include <memory> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "test/cctest/interpreter/bytecode-expectations-printer.h" | 10 #include "test/cctest/interpreter/bytecode-expectations-printer.h" |
11 | 11 |
12 #include "include/libplatform/libplatform.h" | 12 #include "include/libplatform/libplatform.h" |
13 #include "include/v8.h" | 13 #include "include/v8.h" |
14 | 14 |
15 #include "src/base/logging.h" | 15 #include "src/base/logging.h" |
16 #include "src/compiler.h" | |
17 #include "src/interpreter/interpreter.h" | 16 #include "src/interpreter/interpreter.h" |
18 | 17 |
19 #ifdef V8_OS_POSIX | 18 #ifdef V8_OS_POSIX |
20 #include <dirent.h> | 19 #include <dirent.h> |
21 #endif | 20 #endif |
22 | 21 |
23 using v8::internal::interpreter::BytecodeExpectationsPrinter; | 22 using v8::internal::interpreter::BytecodeExpectationsPrinter; |
24 | 23 |
25 #define REPORT_ERROR(MESSAGE) (((std::cerr << "ERROR: ") << MESSAGE) << '\n') | 24 #define REPORT_ERROR(MESSAGE) (((std::cerr << "ERROR: ") << MESSAGE) << '\n') |
26 | 25 |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 } | 554 } |
556 } | 555 } |
557 | 556 |
558 if (!options.rebaseline()) { | 557 if (!options.rebaseline()) { |
559 if (!WriteExpectationsFile(snippet_list, platform, options, | 558 if (!WriteExpectationsFile(snippet_list, platform, options, |
560 options.output_filename())) { | 559 options.output_filename())) { |
561 return 3; | 560 return 3; |
562 } | 561 } |
563 } | 562 } |
564 } | 563 } |
OLD | NEW |