OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_DEPENDENCIES_H_ | 5 #ifndef V8_DEPENDENCIES_H_ |
6 #define V8_DEPENDENCIES_H_ | 6 #define V8_DEPENDENCIES_H_ |
7 | 7 |
| 8 #include "src/handles.h" |
| 9 #include "src/objects.h" |
| 10 |
8 namespace v8 { | 11 namespace v8 { |
9 namespace internal { | 12 namespace internal { |
10 | 13 |
11 // Collects dependencies for this compilation, e.g. assumptions about | 14 // Collects dependencies for this compilation, e.g. assumptions about |
12 // stable maps, constant globals, etc. | 15 // stable maps, constant globals, etc. |
13 class CompilationDependencies { | 16 class CompilationDependencies { |
14 public: | 17 public: |
15 CompilationDependencies(Isolate* isolate, Zone* zone) | 18 CompilationDependencies(Isolate* isolate, Zone* zone) |
16 : isolate_(isolate), | 19 : isolate_(isolate), |
17 zone_(zone), | 20 zone_(zone), |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 bool aborted_; | 58 bool aborted_; |
56 ZoneList<Handle<HeapObject> >* groups_[DependentCode::kGroupCount]; | 59 ZoneList<Handle<HeapObject> >* groups_[DependentCode::kGroupCount]; |
57 | 60 |
58 DependentCode* Get(Handle<Object> object); | 61 DependentCode* Get(Handle<Object> object); |
59 void Set(Handle<Object> object, Handle<DependentCode> dep); | 62 void Set(Handle<Object> object, Handle<DependentCode> dep); |
60 }; | 63 }; |
61 } | 64 } |
62 } // namespace v8::internal | 65 } // namespace v8::internal |
63 | 66 |
64 #endif // V8_DEPENDENCIES_H_ | 67 #endif // V8_DEPENDENCIES_H_ |
OLD | NEW |