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

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

Issue 1584443002: VM: Precompiled rodata snapshot. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: compute string hash if necessary Created 4 years, 10 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/dart_api_impl.cc ('k') | runtime/vm/isolate.h » ('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_HEAP_H_ 5 #ifndef VM_HEAP_H_
6 #define VM_HEAP_H_ 6 #define VM_HEAP_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/flags.h" 10 #include "vm/flags.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 // The heap map contains the sizes and class ids for the objects in each page. 240 // The heap map contains the sizes and class ids for the objects in each page.
241 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream) { 241 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream) {
242 return old_space_.PrintHeapMapToJSONStream(isolate, stream); 242 return old_space_.PrintHeapMapToJSONStream(isolate, stream);
243 } 243 }
244 244
245 Isolate* isolate() const { return isolate_; } 245 Isolate* isolate() const { return isolate_; }
246 246
247 bool ShouldPretenure(intptr_t class_id) const; 247 bool ShouldPretenure(intptr_t class_id) const;
248 248
249 void SetupInstructionsSnapshotPage(void* pointer, uword size) { 249 void SetupExternalPage(void* pointer, uword size, bool is_executable) {
250 old_space_.SetupInstructionsSnapshotPage(pointer, size); 250 old_space_.SetupExternalPage(pointer, size, is_executable);
251 } 251 }
252 252
253 private: 253 private:
254 class GCStats : public ValueObject { 254 class GCStats : public ValueObject {
255 public: 255 public:
256 GCStats() {} 256 GCStats() {}
257 intptr_t num_; 257 intptr_t num_;
258 Heap::Space space_; 258 Heap::Space space_;
259 Heap::GCReason reason_; 259 Heap::GCReason reason_;
260 260
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 explicit WritableVMIsolateScope(Thread* thread, bool include_code_pages); 384 explicit WritableVMIsolateScope(Thread* thread, bool include_code_pages);
385 ~WritableVMIsolateScope(); 385 ~WritableVMIsolateScope();
386 386
387 private: 387 private:
388 bool include_code_pages_; 388 bool include_code_pages_;
389 }; 389 };
390 390
391 } // namespace dart 391 } // namespace dart
392 392
393 #endif // VM_HEAP_H_ 393 #endif // VM_HEAP_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698