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

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

Issue 1411383004: Enable generation of instruction buffer on precompilation (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« runtime/vm/cpu_arm64.cc ('K') | « runtime/vm/cpu_arm64.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/service_isolate.h" 5 #include "vm/service_isolate.h"
6 6
7 #include "vm/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 SwitchIsolateScope switch_scope(I); 364 SwitchIsolateScope switch_scope(I);
365 Dart::ShutdownIsolate(); 365 Dart::ShutdownIsolate();
366 } 366 }
367 if (FLAG_trace_service) { 367 if (FLAG_trace_service) {
368 OS::Print("vm-service: Shutdown.\n"); 368 OS::Print("vm-service: Shutdown.\n");
369 } 369 }
370 ServiceIsolate::FinishedExiting(); 370 ServiceIsolate::FinishedExiting();
371 } 371 }
372 372
373 void RunMain(Isolate* I) { 373 void RunMain(Isolate* I) {
374 if (Dart::IsRunningPrecompiledCode()) {
rmacnak 2015/10/21 23:06:18 // TODO(24651): Remove this.
Chinmay 2015/10/22 00:13:17 ack
375 return;
376 }
377
374 StartIsolateScope iso_scope(I); 378 StartIsolateScope iso_scope(I);
375 Thread* T = Thread::Current(); 379 Thread* T = Thread::Current();
376 ASSERT(I == T->isolate()); 380 ASSERT(I == T->isolate());
377 StackZone zone(T); 381 StackZone zone(T);
378 HANDLESCOPE(T); 382 HANDLESCOPE(T);
379 // Invoke main which will return the loadScriptPort. 383 // Invoke main which will return the loadScriptPort.
380 const Library& root_library = Library::Handle(Z, 384 const Library& root_library = Library::Handle(Z,
381 I->object_store()->root_library()); 385 I->object_store()->root_library());
382 if (root_library.IsNull()) { 386 if (root_library.IsNull()) {
383 if (FLAG_trace_service) { 387 if (FLAG_trace_service) {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 ASSERT(!result.IsNull()); 491 ASSERT(!result.IsNull());
488 Dart_Port port = ILLEGAL_PORT; 492 Dart_Port port = ILLEGAL_PORT;
489 if (result.IsReceivePort()) { 493 if (result.IsReceivePort()) {
490 port = ReceivePort::Cast(result).Id(); 494 port = ReceivePort::Cast(result).Id();
491 } 495 }
492 ASSERT(port != ILLEGAL_PORT); 496 ASSERT(port != ILLEGAL_PORT);
493 ServiceIsolate::SetServicePort(port); 497 ServiceIsolate::SetServicePort(port);
494 } 498 }
495 499
496 } // namespace dart 500 } // namespace dart
OLDNEW
« runtime/vm/cpu_arm64.cc ('K') | « runtime/vm/cpu_arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698