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

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
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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 return unhandled_exception_class_; 525 return unhandled_exception_class_;
526 } 526 }
527 static RawClass* unwind_error_class() { return unwind_error_class_; } 527 static RawClass* unwind_error_class() { return unwind_error_class_; }
528 static RawClass* icdata_class() { return icdata_class_; } 528 static RawClass* icdata_class() { return icdata_class_; }
529 static RawClass* megamorphic_cache_class() { 529 static RawClass* megamorphic_cache_class() {
530 return megamorphic_cache_class_; 530 return megamorphic_cache_class_;
531 } 531 }
532 static RawClass* subtypetestcache_class() { return subtypetestcache_class_; } 532 static RawClass* subtypetestcache_class() { return subtypetestcache_class_; }
533 533
534 // Initialize the VM isolate. 534 // Initialize the VM isolate.
535 static void InitNull(Isolate* isolate);
535 static void InitOnce(Isolate* isolate); 536 static void InitOnce(Isolate* isolate);
536 static void FinalizeVMIsolate(Isolate* isolate); 537 static void FinalizeVMIsolate(Isolate* isolate);
537 538
538 // Initialize a new isolate either from source or from a snapshot. 539 // Initialize a new isolate either from source or from a snapshot.
539 static RawError* Init(Isolate* isolate); 540 static RawError* Init(Isolate* isolate);
540 541
541 static void MakeUnusedSpaceTraversable(const Object& obj, 542 static void MakeUnusedSpaceTraversable(const Object& obj,
542 intptr_t original_size, 543 intptr_t original_size,
543 intptr_t used_size); 544 intptr_t used_size);
544 545
(...skipping 7309 matching lines...) Expand 10 before | Expand all | Expand 10 after
7854 7855
7855 7856
7856 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7857 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7857 intptr_t index) { 7858 intptr_t index) {
7858 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7859 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7859 } 7860 }
7860 7861
7861 } // namespace dart 7862 } // namespace dart
7862 7863
7863 #endif // VM_OBJECT_H_ 7864 #endif // VM_OBJECT_H_
OLDNEW
« runtime/vm/debugger.cc ('K') | « runtime/vm/debugger.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698