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

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

Issue 2909403002: When deduplicating program metadata, try to use objects from the VM isolate. (Closed)
Patch Set: sync Created 3 years, 3 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.cc ('k') | runtime/vm/program_visitor.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 RUNTIME_VM_HEAP_H_ 5 #ifndef RUNTIME_VM_HEAP_H_
6 #define RUNTIME_VM_HEAP_H_ 6 #define RUNTIME_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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 bool gc_old_space_in_progress_; 353 bool gc_old_space_in_progress_;
354 354
355 friend class Become; // VisitObjectPointers 355 friend class Become; // VisitObjectPointers
356 friend class Precompiler; // VisitObjects 356 friend class Precompiler; // VisitObjects
357 friend class Unmarker; // VisitObjects 357 friend class Unmarker; // VisitObjects
358 friend class ServiceEvent; 358 friend class ServiceEvent;
359 friend class PageSpace; // VerifyGC 359 friend class PageSpace; // VerifyGC
360 friend class IsolateReloadContext; // VisitObjects 360 friend class IsolateReloadContext; // VisitObjects
361 friend class ClassFinalizer; // VisitObjects 361 friend class ClassFinalizer; // VisitObjects
362 friend class HeapIterationScope; // VisitObjects 362 friend class HeapIterationScope; // VisitObjects
363 friend class ProgramVisitor; // VisitObjectsImagePages
364 friend class Serializer; // VisitObjectsImagePages
363 365
364 DISALLOW_COPY_AND_ASSIGN(Heap); 366 DISALLOW_COPY_AND_ASSIGN(Heap);
365 }; 367 };
366 368
367 class HeapIterationScope : public StackResource { 369 class HeapIterationScope : public StackResource {
368 public: 370 public:
369 explicit HeapIterationScope(Thread* thread, bool writable = false); 371 explicit HeapIterationScope(Thread* thread, bool writable = false);
370 ~HeapIterationScope(); 372 ~HeapIterationScope();
371 373
372 void IterateObjects(ObjectVisitor* visitor) const; 374 void IterateObjects(ObjectVisitor* visitor) const;
(...skipping 29 matching lines...) Expand all
402 // Note: During this scope, the code pages are non-executable. 404 // Note: During this scope, the code pages are non-executable.
403 class WritableVMIsolateScope : StackResource { 405 class WritableVMIsolateScope : StackResource {
404 public: 406 public:
405 explicit WritableVMIsolateScope(Thread* thread); 407 explicit WritableVMIsolateScope(Thread* thread);
406 ~WritableVMIsolateScope(); 408 ~WritableVMIsolateScope();
407 }; 409 };
408 410
409 } // namespace dart 411 } // namespace dart
410 412
411 #endif // RUNTIME_VM_HEAP_H_ 413 #endif // RUNTIME_VM_HEAP_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/program_visitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698