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

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

Issue 1459443002: VM: Add dart_precompiled build target, a standalone VM without the JIT compiler. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years, 1 month 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/isolate.h" 5 #include "vm/isolate.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "include/dart_native_api.h" 8 #include "include/dart_native_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/json.h" 10 #include "platform/json.h"
(...skipping 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 ISOLATE_METRIC_LIST(ISOLATE_METRIC_PRINT); 1688 ISOLATE_METRIC_LIST(ISOLATE_METRIC_PRINT);
1689 #undef ISOLATE_METRIC_PRINT 1689 #undef ISOLATE_METRIC_PRINT
1690 THR_Print("\n"); 1690 THR_Print("\n");
1691 } 1691 }
1692 } 1692 }
1693 1693
1694 1694
1695 void Isolate::Shutdown() { 1695 void Isolate::Shutdown() {
1696 ASSERT(this == Isolate::Current()); 1696 ASSERT(this == Isolate::Current());
1697 // Wait until all background compilation has finished. 1697 // Wait until all background compilation has finished.
1698 BackgroundCompiler::Stop(background_compiler_); 1698 if (background_compiler_ != NULL) {
1699 BackgroundCompiler::Stop(background_compiler_);
1700 }
1699 1701
1700 #if defined(DEBUG) 1702 #if defined(DEBUG)
1701 if (heap_ != NULL) { 1703 if (heap_ != NULL) {
1702 // The VM isolate keeps all objects marked. 1704 // The VM isolate keeps all objects marked.
1703 heap_->Verify(this == Dart::vm_isolate() ? kRequireMarked : kForbidMarked); 1705 heap_->Verify(this == Dart::vm_isolate() ? kRequireMarked : kForbidMarked);
1704 } 1706 }
1705 #endif // DEBUG 1707 #endif // DEBUG
1706 1708
1707 Thread* thread = Thread::Current(); 1709 Thread* thread = Thread::Current();
1708 1710
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
2593 } 2595 }
2594 2596
2595 2597
2596 RawInstance* IsolateSpawnState::BuildMessage(Thread* thread) { 2598 RawInstance* IsolateSpawnState::BuildMessage(Thread* thread) {
2597 return DeserializeObject(thread, 2599 return DeserializeObject(thread,
2598 serialized_message_, serialized_message_len_); 2600 serialized_message_, serialized_message_len_);
2599 } 2601 }
2600 2602
2601 2603
2602 } // namespace dart 2604 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698