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

Side by Side Diff: src/vm/heap_validator.h

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments 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 | « src/vm/heap.cc ('k') | src/vm/heap_validator.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) 2015, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dartino 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #ifndef SRC_VM_HEAP_VALIDATOR_H_ 5 #ifndef SRC_VM_HEAP_VALIDATOR_H_
6 #define SRC_VM_HEAP_VALIDATOR_H_ 6 #define SRC_VM_HEAP_VALIDATOR_H_
7 7
8 #include "src/vm/heap.h" 8 #include "src/vm/heap.h"
9 #include "src/vm/scheduler.h" 9 #include "src/vm/scheduler.h"
10 10
11 namespace fletch { 11 namespace dartino {
12 12
13 class SharedHeap; 13 class SharedHeap;
14 14
15 // Validates that all pointers it gets called with lie inside certain spaces - 15 // Validates that all pointers it gets called with lie inside certain spaces -
16 // depending on [process_heap], [program_heap]. 16 // depending on [process_heap], [program_heap].
17 class HeapPointerValidator : public PointerVisitor { 17 class HeapPointerValidator : public PointerVisitor {
18 public: 18 public:
19 HeapPointerValidator(Heap* program_heap, Heap* process_heap) 19 HeapPointerValidator(Heap* program_heap, Heap* process_heap)
20 : program_heap_(program_heap), 20 : program_heap_(program_heap),
21 process_heap_(process_heap) {} 21 process_heap_(process_heap) {}
(...skipping 23 matching lines...) Expand all
45 explicit ProcessHeapValidatorVisitor(Heap* program_heap) 45 explicit ProcessHeapValidatorVisitor(Heap* program_heap)
46 : program_heap_(program_heap) {} 46 : program_heap_(program_heap) {}
47 virtual ~ProcessHeapValidatorVisitor() {} 47 virtual ~ProcessHeapValidatorVisitor() {}
48 48
49 virtual void VisitProcess(Process* process); 49 virtual void VisitProcess(Process* process);
50 50
51 private: 51 private:
52 Heap* program_heap_; 52 Heap* program_heap_;
53 }; 53 };
54 54
55 } // namespace fletch 55 } // namespace dartino
56 56
57 #endif // SRC_VM_HEAP_VALIDATOR_H_ 57 #endif // SRC_VM_HEAP_VALIDATOR_H_
OLDNEW
« no previous file with comments | « src/vm/heap.cc ('k') | src/vm/heap_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698