| 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 #include "src/allocation-site-scopes.h" | 5 #include "src/allocation-site-scopes.h" |
| 6 #include "src/factory.h" |
| 7 #include "src/isolate.h" |
| 8 #include "src/objects-inl.h" |
| 6 | 9 |
| 7 namespace v8 { | 10 namespace v8 { |
| 8 namespace internal { | 11 namespace internal { |
| 9 | 12 |
| 10 | 13 |
| 11 Handle<AllocationSite> AllocationSiteCreationContext::EnterNewScope() { | 14 Handle<AllocationSite> AllocationSiteCreationContext::EnterNewScope() { |
| 12 Handle<AllocationSite> scope_site; | 15 Handle<AllocationSite> scope_site; |
| 13 if (top().is_null()) { | 16 if (top().is_null()) { |
| 14 // We are creating the top level AllocationSite as opposed to a nested | 17 // We are creating the top level AllocationSite as opposed to a nested |
| 15 // AllocationSite. | 18 // AllocationSite. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 static_cast<void*>(*object)); | 74 static_cast<void*>(*object)); |
| 72 } | 75 } |
| 73 return true; | 76 return true; |
| 74 } | 77 } |
| 75 } | 78 } |
| 76 return false; | 79 return false; |
| 77 } | 80 } |
| 78 | 81 |
| 79 } // namespace internal | 82 } // namespace internal |
| 80 } // namespace v8 | 83 } // namespace v8 |
| OLD | NEW |