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

Side by Side Diff: src/compiler/js-native-context-specialization.cc

Issue 2674593003: [TypeFeedbackVector] Root feedback vectors at function literal site. (Closed)
Patch Set: REBASE+liveedit fix. Created 3 years, 10 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/compiler/js-graph.cc ('k') | src/contexts.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/compiler/js-native-context-specialization.h" 5 #include "src/compiler/js-native-context-specialization.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/compilation-dependencies.h" 9 #include "src/compilation-dependencies.h"
10 #include "src/compiler/access-builder.h" 10 #include "src/compiler/access-builder.h"
(...skipping 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 } 1593 }
1594 1594
1595 DCHECK_EQ(MONOMORPHIC, nexus.ic_state()); 1595 DCHECK_EQ(MONOMORPHIC, nexus.ic_state());
1596 1596
1597 Map* map = nexus.FindFirstMap(); 1597 Map* map = nexus.FindFirstMap();
1598 if (map == nullptr) { 1598 if (map == nullptr) {
1599 // Maps are weakly held in the type feedback vector, we may not have one. 1599 // Maps are weakly held in the type feedback vector, we may not have one.
1600 return NoChange(); 1600 return NoChange();
1601 } 1601 }
1602 1602
1603 Handle<Map> receiver_map(nexus.FindFirstMap(), isolate()); 1603 Handle<Map> receiver_map(map, isolate());
1604 Handle<Name> cached_name = 1604 Handle<Name> cached_name =
1605 handle(Name::cast(nexus.GetFeedbackExtra()), isolate()); 1605 handle(Name::cast(nexus.GetFeedbackExtra()), isolate());
1606 1606
1607 PropertyAccessInfo access_info; 1607 PropertyAccessInfo access_info;
1608 AccessInfoFactory access_info_factory(dependencies(), native_context(), 1608 AccessInfoFactory access_info_factory(dependencies(), native_context(),
1609 graph()->zone()); 1609 graph()->zone());
1610 if (!access_info_factory.ComputePropertyAccessInfo( 1610 if (!access_info_factory.ComputePropertyAccessInfo(
1611 receiver_map, cached_name, AccessMode::kStoreInLiteral, 1611 receiver_map, cached_name, AccessMode::kStoreInLiteral,
1612 &access_info)) { 1612 &access_info)) {
1613 return NoChange(); 1613 return NoChange();
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
2247 return jsgraph()->javascript(); 2247 return jsgraph()->javascript();
2248 } 2248 }
2249 2249
2250 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { 2250 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const {
2251 return jsgraph()->simplified(); 2251 return jsgraph()->simplified();
2252 } 2252 }
2253 2253
2254 } // namespace compiler 2254 } // namespace compiler
2255 } // namespace internal 2255 } // namespace internal
2256 } // namespace v8 2256 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-graph.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698