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

Side by Side Diff: runtime/vm/bootstrap.cc

Issue 2598603002: Revert "Turn the VM's dart:typed_data into a patch" (Closed)
Patch Set: Created 4 years 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 | « runtime/vm/bootstrap.h ('k') | runtime/vm/dart_api_impl.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/bootstrap.h" 5 #include "vm/bootstrap.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/bootstrap_natives.h" 9 #include "vm/bootstrap_natives.h"
10 #include "vm/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 26 matching lines...) Expand all
37 37
38 enum { 38 enum {
39 kPathsUriOffset = 0, 39 kPathsUriOffset = 0,
40 kPathsFileOffset = 1, 40 kPathsFileOffset = 1,
41 kPathsSourceOffset = 2, 41 kPathsSourceOffset = 2,
42 kPathsEntryLength = 3 42 kPathsEntryLength = 3
43 }; 43 };
44 44
45 45
46 const char** Bootstrap::profiler_patch_paths_ = NULL; 46 const char** Bootstrap::profiler_patch_paths_ = NULL;
47 const char** Bootstrap::typed_data_patch_paths_ = NULL;
47 48
48 49
49 #define MAKE_PROPERTIES(CamelName, name) \ 50 #define MAKE_PROPERTIES(CamelName, name) \
50 {ObjectStore::k##CamelName, "dart:" #name, Bootstrap::name##_source_paths_, \ 51 {ObjectStore::k##CamelName, "dart:" #name, Bootstrap::name##_source_paths_, \
51 "dart:" #name "-patch", Bootstrap::name##_patch_paths_}, 52 "dart:" #name "-patch", Bootstrap::name##_patch_paths_},
52 53
53 static const BootstrapLibProps bootstrap_libraries[] = { 54 static const BootstrapLibProps bootstrap_libraries[] = {
54 FOR_EACH_BOOTSTRAP_LIBRARY(MAKE_PROPERTIES)}; 55 FOR_EACH_BOOTSTRAP_LIBRARY(MAKE_PROPERTIES)};
55 56
56 #undef MAKE_PROPERTIES 57 #undef MAKE_PROPERTIES
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 lib.Register(thread); 393 lib.Register(thread);
393 isolate->object_store()->set_bootstrap_library(id, lib); 394 isolate->object_store()->set_bootstrap_library(id, lib);
394 } 395 }
395 } 396 }
396 397
397 return (kernel_program == NULL) ? BootstrapFromSource(thread) 398 return (kernel_program == NULL) ? BootstrapFromSource(thread)
398 : BootstrapFromKernel(thread, kernel_program); 399 : BootstrapFromKernel(thread, kernel_program);
399 } 400 }
400 401
401 } // namespace dart 402 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698