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

Side by Side Diff: runtime/vm/object.h

Issue 1168933002: Fixes crashes in VM isolate shutdown. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | « runtime/vm/isolate.h ('k') | runtime/vm/object.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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 return unhandled_exception_class_; 531 return unhandled_exception_class_;
532 } 532 }
533 static RawClass* unwind_error_class() { return unwind_error_class_; } 533 static RawClass* unwind_error_class() { return unwind_error_class_; }
534 static RawClass* icdata_class() { return icdata_class_; } 534 static RawClass* icdata_class() { return icdata_class_; }
535 static RawClass* megamorphic_cache_class() { 535 static RawClass* megamorphic_cache_class() {
536 return megamorphic_cache_class_; 536 return megamorphic_cache_class_;
537 } 537 }
538 static RawClass* subtypetestcache_class() { return subtypetestcache_class_; } 538 static RawClass* subtypetestcache_class() { return subtypetestcache_class_; }
539 539
540 // Initialize the VM isolate. 540 // Initialize the VM isolate.
541 static void InitNull(Isolate* isolate);
541 static void InitOnce(Isolate* isolate); 542 static void InitOnce(Isolate* isolate);
542 static void FinalizeVMIsolate(Isolate* isolate); 543 static void FinalizeVMIsolate(Isolate* isolate);
543 544
544 // Initialize a new isolate either from source or from a snapshot. 545 // Initialize a new isolate either from source or from a snapshot.
545 static RawError* Init(Isolate* isolate); 546 static RawError* Init(Isolate* isolate);
546 547
547 static void MakeUnusedSpaceTraversable(const Object& obj, 548 static void MakeUnusedSpaceTraversable(const Object& obj,
548 intptr_t original_size, 549 intptr_t original_size,
549 intptr_t used_size); 550 intptr_t used_size);
550 551
(...skipping 7417 matching lines...) Expand 10 before | Expand all | Expand 10 after
7968 7969
7969 7970
7970 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7971 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7971 intptr_t index) { 7972 intptr_t index) {
7972 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7973 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7973 } 7974 }
7974 7975
7975 } // namespace dart 7976 } // namespace dart
7976 7977
7977 #endif // VM_OBJECT_H_ 7978 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698