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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 351 |
352 stream << "\n\n"; | 352 stream << "\n\n"; |
353 } | 353 } |
354 | 354 |
355 V8InitializationScope::V8InitializationScope(const char* exec_path) | 355 V8InitializationScope::V8InitializationScope(const char* exec_path) |
356 : platform_(v8::platform::CreateDefaultPlatform()) { | 356 : platform_(v8::platform::CreateDefaultPlatform()) { |
357 i::FLAG_ignition = true; | 357 i::FLAG_ignition = true; |
358 i::FLAG_always_opt = false; | 358 i::FLAG_always_opt = false; |
359 i::FLAG_allow_natives_syntax = true; | 359 i::FLAG_allow_natives_syntax = true; |
360 | 360 |
361 v8::V8::InitializeICU(); | 361 v8::V8::InitializeICUDefaultLocation(exec_path); |
362 v8::V8::InitializeExternalStartupData(exec_path); | 362 v8::V8::InitializeExternalStartupData(exec_path); |
363 v8::V8::InitializePlatform(platform_.get()); | 363 v8::V8::InitializePlatform(platform_.get()); |
364 v8::V8::Initialize(); | 364 v8::V8::Initialize(); |
365 | 365 |
366 ArrayBufferAllocator allocator; | 366 ArrayBufferAllocator allocator; |
367 v8::Isolate::CreateParams create_params; | 367 v8::Isolate::CreateParams create_params; |
368 create_params.array_buffer_allocator = &allocator; | 368 create_params.array_buffer_allocator = &allocator; |
369 | 369 |
370 isolate_ = v8::Isolate::New(create_params); | 370 isolate_ = v8::Isolate::New(create_params); |
371 } | 371 } |
(...skipping 203 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 |