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

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

Issue 1389353004: Remove isolate argument from handle allocation: Part II (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: c 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
« no previous file with comments | « runtime/vm/report_test.cc ('k') | runtime/vm/snapshot.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_SNAPSHOT_H_ 5 #ifndef VM_SNAPSHOT_H_
6 #define VM_SNAPSHOT_H_ 6 #define VM_SNAPSHOT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/bitfield.h" 10 #include "vm/bitfield.h"
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 ASSERT(forward_list_ == NULL); 967 ASSERT(forward_list_ == NULL);
968 forward_list_ = forward_list; 968 forward_list_ = forward_list;
969 } 969 }
970 void ResetForwardList() { 970 void ResetForwardList() {
971 ASSERT(forward_list_ != NULL); 971 ASSERT(forward_list_ != NULL);
972 forward_list_ = NULL; 972 forward_list_ = NULL;
973 } 973 }
974 974
975 Thread* thread() const { return thread_; } 975 Thread* thread() const { return thread_; }
976 Isolate* isolate() const { return thread_->isolate(); } 976 Isolate* isolate() const { return thread_->isolate(); }
977 Zone* zone() const { return thread_->zone(); }
977 ObjectStore* object_store() const { return object_store_; } 978 ObjectStore* object_store() const { return object_store_; }
978 979
979 private: 980 private:
980 Snapshot::Kind kind_; 981 Snapshot::Kind kind_;
981 Thread* thread_; 982 Thread* thread_;
982 ObjectStore* object_store_; // Object store for common classes. 983 ObjectStore* object_store_; // Object store for common classes.
983 ClassTable* class_table_; // Class table for the class index to class lookup. 984 ClassTable* class_table_; // Class table for the class index to class lookup.
984 ForwardList* forward_list_; 985 ForwardList* forward_list_;
985 InstructionsWriter* instructions_writer_; 986 InstructionsWriter* instructions_writer_;
986 Exceptions::ExceptionType exception_type_; // Exception type. 987 Exceptions::ExceptionType exception_type_; // Exception type.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 private: 1135 private:
1135 SnapshotWriter* writer_; 1136 SnapshotWriter* writer_;
1136 bool as_references_; 1137 bool as_references_;
1137 1138
1138 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor); 1139 DISALLOW_COPY_AND_ASSIGN(SnapshotWriterVisitor);
1139 }; 1140 };
1140 1141
1141 } // namespace dart 1142 } // namespace dart
1142 1143
1143 #endif // VM_SNAPSHOT_H_ 1144 #endif // VM_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « runtime/vm/report_test.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698