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

Side by Side Diff: src/compiler/access-info.cc

Issue 2083323002: Version 5.0.71.54 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.0
Patch Set: Created 4 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 | « include/v8-version.h ('k') | src/crankshaft/hydrogen.cc » ('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 <ostream> 5 #include <ostream>
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/compilation-dependencies.h" 8 #include "src/compilation-dependencies.h"
9 #include "src/compiler/access-info.h" 9 #include "src/compiler/access-info.h"
10 #include "src/field-index-inl.h" 10 #include "src/field-index-inl.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 possible_transition_targets.Add(map); 185 possible_transition_targets.Add(map);
186 } 186 }
187 } 187 }
188 } 188 }
189 189
190 // Separate the actual receiver maps and the possible transition sources. 190 // Separate the actual receiver maps and the possible transition sources.
191 MapHandleList receiver_maps(maps.length()); 191 MapHandleList receiver_maps(maps.length());
192 MapTransitionList transitions(maps.length()); 192 MapTransitionList transitions(maps.length());
193 for (Handle<Map> map : maps) { 193 for (Handle<Map> map : maps) {
194 if (Map::TryUpdate(map).ToHandle(&map)) { 194 if (Map::TryUpdate(map).ToHandle(&map)) {
195 Handle<Map> transition_target = 195 Map* transition_target =
196 Map::FindTransitionedMap(map, &possible_transition_targets); 196 map->FindElementsKindTransitionedMap(&possible_transition_targets);
197 if (transition_target.is_null()) { 197 if (transition_target == nullptr) {
198 receiver_maps.Add(map); 198 receiver_maps.Add(map);
199 } else { 199 } else {
200 transitions.push_back(std::make_pair(map, transition_target)); 200 transitions.push_back(std::make_pair(map, handle(transition_target)));
201 } 201 }
202 } 202 }
203 } 203 }
204 204
205 for (Handle<Map> receiver_map : receiver_maps) { 205 for (Handle<Map> receiver_map : receiver_maps) {
206 // Compute the element access information. 206 // Compute the element access information.
207 ElementAccessInfo access_info; 207 ElementAccessInfo access_info;
208 if (!ComputeElementAccessInfo(receiver_map, access_mode, &access_info)) { 208 if (!ComputeElementAccessInfo(receiver_map, access_mode, &access_info)) {
209 return false; 209 return false;
210 } 210 }
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 } 478 }
479 return false; 479 return false;
480 } 480 }
481 481
482 482
483 Factory* AccessInfoFactory::factory() const { return isolate()->factory(); } 483 Factory* AccessInfoFactory::factory() const { return isolate()->factory(); }
484 484
485 } // namespace compiler 485 } // namespace compiler
486 } // namespace internal 486 } // namespace internal
487 } // namespace v8 487 } // namespace v8
OLDNEW
« no previous file with comments | « include/v8-version.h ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698