| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "test/cctest/interpreter/bytecode-expectations-printer.h" | 9 #include "test/cctest/interpreter/bytecode-expectations-printer.h" |
| 10 | 10 |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 execute_ = ParseBoolean(line.c_str() + 9); | 315 execute_ = ParseBoolean(line.c_str() + 9); |
| 316 } else if (line.compare(0, 6, "wrap: ") == 0) { | 316 } else if (line.compare(0, 6, "wrap: ") == 0) { |
| 317 wrap_ = ParseBoolean(line.c_str() + 6); | 317 wrap_ = ParseBoolean(line.c_str() + 6); |
| 318 } else if (line.compare(0, 20, "test function name: ") == 0) { | 318 } else if (line.compare(0, 20, "test function name: ") == 0) { |
| 319 test_function_name_ = line.c_str() + 20; | 319 test_function_name_ = line.c_str() + 20; |
| 320 } else if (line.compare(0, 11, "top level: ") == 0) { | 320 } else if (line.compare(0, 11, "top level: ") == 0) { |
| 321 top_level_ = ParseBoolean(line.c_str() + 11); | 321 top_level_ = ParseBoolean(line.c_str() + 11); |
| 322 } else if (line.compare(0, 16, "do expressions: ") == 0) { | 322 } else if (line.compare(0, 16, "do expressions: ") == 0) { |
| 323 do_expressions_ = ParseBoolean(line.c_str() + 16); | 323 do_expressions_ = ParseBoolean(line.c_str() + 16); |
| 324 } else if (line.compare(0, 21, "ignition generators: ") == 0) { | 324 } else if (line.compare(0, 21, "ignition generators: ") == 0) { |
| 325 do_expressions_ = ParseBoolean(line.c_str() + 21); | 325 ignition_generators_ = ParseBoolean(line.c_str() + 21); |
| 326 } else if (line == "---") { | 326 } else if (line == "---") { |
| 327 break; | 327 break; |
| 328 } else if (line.empty()) { | 328 } else if (line.empty()) { |
| 329 continue; | 329 continue; |
| 330 } else { | 330 } else { |
| 331 UNREACHABLE(); | 331 UNREACHABLE(); |
| 332 return; | 332 return; |
| 333 } | 333 } |
| 334 } | 334 } |
| 335 } | 335 } |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 } | 575 } |
| 576 } | 576 } |
| 577 | 577 |
| 578 if (!options.rebaseline()) { | 578 if (!options.rebaseline()) { |
| 579 if (!WriteExpectationsFile(snippet_list, platform, options, | 579 if (!WriteExpectationsFile(snippet_list, platform, options, |
| 580 options.output_filename())) { | 580 options.output_filename())) { |
| 581 return 3; | 581 return 3; |
| 582 } | 582 } |
| 583 } | 583 } |
| 584 } | 584 } |
| OLD | NEW |