| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ALLOCATION_SITE_SCOPES_H_ | 5 #ifndef V8_ALLOCATION_SITE_SCOPES_H_ |
| 6 #define V8_ALLOCATION_SITE_SCOPES_H_ | 6 #define V8_ALLOCATION_SITE_SCOPES_H_ |
| 7 | 7 |
| 8 #include "src/ast/ast.h" | |
| 9 #include "src/handles.h" | 8 #include "src/handles.h" |
| 10 #include "src/objects.h" | 9 #include "src/objects.h" |
| 11 #include "src/zone.h" | |
| 12 | 10 |
| 13 namespace v8 { | 11 namespace v8 { |
| 14 namespace internal { | 12 namespace internal { |
| 15 | 13 |
| 16 | 14 |
| 17 // AllocationSiteContext is the base class for walking and copying a nested | 15 // AllocationSiteContext is the base class for walking and copying a nested |
| 18 // boilerplate with AllocationSite and AllocationMemento support. | 16 // boilerplate with AllocationSite and AllocationMemento support. |
| 19 class AllocationSiteContext { | 17 class AllocationSiteContext { |
| 20 public: | 18 public: |
| 21 explicit AllocationSiteContext(Isolate* isolate) { | 19 explicit AllocationSiteContext(Isolate* isolate) { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 private: | 90 private: |
| 93 Handle<AllocationSite> top_site_; | 91 Handle<AllocationSite> top_site_; |
| 94 bool activated_; | 92 bool activated_; |
| 95 }; | 93 }; |
| 96 | 94 |
| 97 | 95 |
| 98 } // namespace internal | 96 } // namespace internal |
| 99 } // namespace v8 | 97 } // namespace v8 |
| 100 | 98 |
| 101 #endif // V8_ALLOCATION_SITE_SCOPES_H_ | 99 #endif // V8_ALLOCATION_SITE_SCOPES_H_ |
| OLD | NEW |