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

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

Issue 1834743003: Precompilation: don't start the service isolate in product mode. Remove vm service tree shaking roo… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « runtime/bin/main.cc ('k') | no next file » | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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/precompiler.h" 5 #include "vm/precompiler.h"
6 6
7 #include "vm/aot_optimizer.h" 7 #include "vm/aot_optimizer.h"
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/branch_optimizer.h" 10 #include "vm/branch_optimizer.h"
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 if ((cid == kDynamicCid) || 275 if ((cid == kDynamicCid) ||
276 (cid == kVoidCid) || 276 (cid == kVoidCid) ||
277 (cid == kFreeListElement)) { 277 (cid == kFreeListElement)) {
278 continue; 278 continue;
279 } 279 }
280 cls = isolate()->class_table()->At(cid); 280 cls = isolate()->class_table()->At(cid);
281 AddInstantiatedClass(cls); 281 AddInstantiatedClass(cls);
282 } 282 }
283 283
284 Dart_QualifiedFunctionName vm_entry_points[] = { 284 Dart_QualifiedFunctionName vm_entry_points[] = {
285 // TODO(rmacnak): These types are not allocated from C++ but they are
286 // cached in the object store. Consider clearing them from the object store
287 // before snapshotting and adjusting InitKnownObjects to allow their
288 // absence.
289 { "dart:async", "Future", "Future." },
290 { "dart:async", "Completer", "Completer." },
291 { "dart:async", "StreamIterator", "StreamIterator." },
292
285 // Functions 293 // Functions
286 { "dart:async", "::", "_setScheduleImmediateClosure" }, 294 { "dart:async", "::", "_setScheduleImmediateClosure" },
287 { "dart:core", "::", "_completeDeferredLoads" }, 295 { "dart:core", "::", "_completeDeferredLoads" },
288 { "dart:core", "AbstractClassInstantiationError", 296 { "dart:core", "AbstractClassInstantiationError",
289 "AbstractClassInstantiationError._create" }, 297 "AbstractClassInstantiationError._create" },
290 { "dart:core", "ArgumentError", "ArgumentError." }, 298 { "dart:core", "ArgumentError", "ArgumentError." },
291 { "dart:core", "CyclicInitializationError", 299 { "dart:core", "CyclicInitializationError",
292 "CyclicInitializationError." }, 300 "CyclicInitializationError." },
293 { "dart:core", "FallThroughError", "FallThroughError._create" }, 301 { "dart:core", "FallThroughError", "FallThroughError._create" },
294 { "dart:core", "FormatException", "FormatException." }, 302 { "dart:core", "FormatException", "FormatException." },
(...skipping 12 matching lines...) Expand all
307 { "dart:isolate", "IsolateSpawnException", "IsolateSpawnException." }, 315 { "dart:isolate", "IsolateSpawnException", "IsolateSpawnException." },
308 { "dart:isolate", "::", "_getIsolateScheduleImmediateClosure" }, 316 { "dart:isolate", "::", "_getIsolateScheduleImmediateClosure" },
309 { "dart:isolate", "::", "_setupHooks" }, 317 { "dart:isolate", "::", "_setupHooks" },
310 { "dart:isolate", "::", "_startMainIsolate" }, 318 { "dart:isolate", "::", "_startMainIsolate" },
311 { "dart:isolate", "_RawReceivePortImpl", "_handleMessage" }, 319 { "dart:isolate", "_RawReceivePortImpl", "_handleMessage" },
312 { "dart:isolate", "_RawReceivePortImpl", "_lookupHandler" }, 320 { "dart:isolate", "_RawReceivePortImpl", "_lookupHandler" },
313 { "dart:isolate", "_SendPortImpl", "send" }, 321 { "dart:isolate", "_SendPortImpl", "send" },
314 { "dart:typed_data", "ByteData", "ByteData." }, 322 { "dart:typed_data", "ByteData", "ByteData." },
315 { "dart:typed_data", "ByteData", "ByteData._view" }, 323 { "dart:typed_data", "ByteData", "ByteData._view" },
316 { "dart:typed_data", "ByteBuffer", "ByteBuffer._New" }, 324 { "dart:typed_data", "ByteBuffer", "ByteBuffer._New" },
325 #if !defined(PRODUCT)
317 { "dart:_vmservice", "::", "_registerIsolate" }, 326 { "dart:_vmservice", "::", "_registerIsolate" },
318 { "dart:_vmservice", "::", "boot" }, 327 { "dart:_vmservice", "::", "boot" },
319 { "dart:developer", "Metrics", "_printMetrics" }, 328 { "dart:developer", "Metrics", "_printMetrics" },
329 #endif // !PRODUCT
320 // Fields 330 // Fields
321 { "dart:core", "Error", "_stackTrace" }, 331 { "dart:core", "Error", "_stackTrace" },
322 { "dart:math", "_Random", "_state" }, 332 { "dart:math", "_Random", "_state" },
323 { NULL, NULL, NULL } // Must be terminated with NULL entries. 333 { NULL, NULL, NULL } // Must be terminated with NULL entries.
324 }; 334 };
325 335
326 AddEntryPoints(vm_entry_points); 336 AddEntryPoints(vm_entry_points);
327 AddEntryPoints(embedder_entry_points); 337 AddEntryPoints(embedder_entry_points);
328 } 338 }
329 339
(...skipping 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after
2672 CompilationPipeline::New(thread->zone(), function); 2682 CompilationPipeline::New(thread->zone(), function);
2673 2683
2674 ASSERT(FLAG_precompiled_mode); 2684 ASSERT(FLAG_precompiled_mode);
2675 const bool optimized = function.IsOptimizable(); // False for natives. 2685 const bool optimized = function.IsOptimizable(); // False for natives.
2676 return PrecompileFunctionHelper(pipeline, function, optimized); 2686 return PrecompileFunctionHelper(pipeline, function, optimized);
2677 } 2687 }
2678 2688
2679 #endif // DART_PRECOMPILER 2689 #endif // DART_PRECOMPILER
2680 2690
2681 } // namespace dart 2691 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698