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

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

Issue 2042253002: [icu] Support loading data file from default location (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Format Created 4 years, 6 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
« no previous file with comments | « test/cctest/cctest.cc ('k') | test/fuzzer/fuzzer-support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « test/cctest/cctest.cc ('k') | test/fuzzer/fuzzer-support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698