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