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

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

Issue 2930433003: [turbofan] Try to update deprecated maps first. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | test/mjsunit/regress/regress-crbug-724608.js » ('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 1863 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 1874
1875 DCHECK_EQ(MONOMORPHIC, nexus.ic_state()); 1875 DCHECK_EQ(MONOMORPHIC, nexus.ic_state());
1876 1876
1877 Map* map = nexus.FindFirstMap(); 1877 Map* map = nexus.FindFirstMap();
1878 if (map == nullptr) { 1878 if (map == nullptr) {
1879 // Maps are weakly held in the type feedback vector, we may not have one. 1879 // Maps are weakly held in the type feedback vector, we may not have one.
1880 return NoChange(); 1880 return NoChange();
1881 } 1881 }
1882 1882
1883 Handle<Map> receiver_map(map, isolate()); 1883 Handle<Map> receiver_map(map, isolate());
1884 if (!Map::TryUpdate(receiver_map).ToHandle(&receiver_map)) return NoChange();
1885
1884 Handle<Name> cached_name = 1886 Handle<Name> cached_name =
1885 handle(Name::cast(nexus.GetFeedbackExtra()), isolate()); 1887 handle(Name::cast(nexus.GetFeedbackExtra()), isolate());
1886 1888
1887 PropertyAccessInfo access_info; 1889 PropertyAccessInfo access_info;
1888 AccessInfoFactory access_info_factory(dependencies(), native_context(), 1890 AccessInfoFactory access_info_factory(dependencies(), native_context(),
1889 graph()->zone()); 1891 graph()->zone());
1890 if (!access_info_factory.ComputePropertyAccessInfo( 1892 if (!access_info_factory.ComputePropertyAccessInfo(
1891 receiver_map, cached_name, AccessMode::kStoreInLiteral, 1893 receiver_map, cached_name, AccessMode::kStoreInLiteral,
1892 &access_info)) { 1894 &access_info)) {
1893 return NoChange(); 1895 return NoChange();
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
2612 return jsgraph()->javascript(); 2614 return jsgraph()->javascript();
2613 } 2615 }
2614 2616
2615 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { 2617 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const {
2616 return jsgraph()->simplified(); 2618 return jsgraph()->simplified();
2617 } 2619 }
2618 2620
2619 } // namespace compiler 2621 } // namespace compiler
2620 } // namespace internal 2622 } // namespace internal
2621 } // namespace v8 2623 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-724608.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698