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

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: win32, android build Created 4 years, 11 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_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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 // The heap map contains the sizes and class ids for the objects in each page. 245 // The heap map contains the sizes and class ids for the objects in each page.
246 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream) { 246 void PrintHeapMapToJSONStream(Isolate* isolate, JSONStream* stream) {
247 return old_space_.PrintHeapMapToJSONStream(isolate, stream); 247 return old_space_.PrintHeapMapToJSONStream(isolate, stream);
248 } 248 }
249 249
250 Isolate* isolate() const { return isolate_; } 250 Isolate* isolate() const { return isolate_; }
251 251
252 bool ShouldPretenure(intptr_t class_id) const; 252 bool ShouldPretenure(intptr_t class_id) const;
253 253
254 void SetupInstructionsSnapshotPage(void* pointer, uword size) { 254 void SetupInstructionsSnapshotPage(void* pointer,
rmacnak 2016/01/15 00:57:01 SetupExternalPage
Florian Schneider 2016/01/15 15:56:01 Done.
255 old_space_.SetupInstructionsSnapshotPage(pointer, size); 255 uword size,
256 bool is_executable) {
257 old_space_.SetupInstructionsSnapshotPage(pointer, size, is_executable);
256 } 258 }
257 259
258 private: 260 private:
259 class GCStats : public ValueObject { 261 class GCStats : public ValueObject {
260 public: 262 public:
261 GCStats() {} 263 GCStats() {}
262 intptr_t num_; 264 intptr_t num_;
263 Heap::Space space_; 265 Heap::Space space_;
264 Heap::GCReason reason_; 266 Heap::GCReason reason_;
265 267
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 explicit WritableVMIsolateScope(Thread* thread, bool include_code_pages); 391 explicit WritableVMIsolateScope(Thread* thread, bool include_code_pages);
390 ~WritableVMIsolateScope(); 392 ~WritableVMIsolateScope();
391 393
392 private: 394 private:
393 bool include_code_pages_; 395 bool include_code_pages_;
394 }; 396 };
395 397
396 } // namespace dart 398 } // namespace dart
397 399
398 #endif // VM_HEAP_H_ 400 #endif // VM_HEAP_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/isolate.h » ('j') | runtime/vm/pages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698