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

Side by Side Diff: src/compilation-dependencies.cc

Issue 2344143003: Moved zones and zone related stuff in its own directory. (Closed)
Patch Set: Merge branch 'master' into zonefolder Created 4 years, 3 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/bit-vector.h ('k') | src/compiler.h » ('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 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 #include "src/compilation-dependencies.h" 5 #include "src/compilation-dependencies.h"
6 6
7 #include "src/factory.h" 7 #include "src/factory.h"
8 #include "src/handles-inl.h" 8 #include "src/handles-inl.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
11 #include "src/zone.h" 11 #include "src/zone/zone.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 DependentCode* CompilationDependencies::Get(Handle<Object> object) { 16 DependentCode* CompilationDependencies::Get(Handle<Object> object) {
17 if (object->IsMap()) { 17 if (object->IsMap()) {
18 return Handle<Map>::cast(object)->dependent_code(); 18 return Handle<Map>::cast(object)->dependent_code();
19 } else if (object->IsPropertyCell()) { 19 } else if (object->IsPropertyCell()) {
20 return Handle<PropertyCell>::cast(object)->dependent_code(); 20 return Handle<PropertyCell>::cast(object)->dependent_code();
21 } else if (object->IsAllocationSite()) { 21 } else if (object->IsAllocationSite()) {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 site->SitePointsToLiteral() 145 site->SitePointsToLiteral()
146 ? JSObject::cast(site->transition_info())->GetElementsKind() 146 ? JSObject::cast(site->transition_info())->GetElementsKind()
147 : site->GetElementsKind(); 147 : site->GetElementsKind();
148 if (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) { 148 if (AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE) {
149 Insert(DependentCode::kAllocationSiteTransitionChangedGroup, site); 149 Insert(DependentCode::kAllocationSiteTransitionChangedGroup, site);
150 } 150 }
151 } 151 }
152 152
153 } // namespace internal 153 } // namespace internal
154 } // namespace v8 154 } // namespace v8
OLDNEW
« no previous file with comments | « src/bit-vector.h ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698