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

Side by Side Diff: src/ic/ic-compiler.cc

Issue 2086483005: Version 5.1.281.68 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1
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 | « src/ic/ic.cc ('k') | src/objects.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ic/ic-compiler.h" 5 #include "src/ic/ic-compiler.h"
6 6
7 #include "src/ic/handler-compiler.h" 7 #include "src/ic/handler-compiler.h"
8 #include "src/ic/ic-inl.h" 8 #include "src/ic/ic-inl.h"
9 #include "src/profiler/cpu-profiler.h" 9 #include "src/profiler/cpu-profiler.h"
10 10
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 return code; 210 return code;
211 } 211 }
212 212
213 213
214 void PropertyICCompiler::CompileKeyedStorePolymorphicHandlers( 214 void PropertyICCompiler::CompileKeyedStorePolymorphicHandlers(
215 MapHandleList* receiver_maps, MapHandleList* transitioned_maps, 215 MapHandleList* receiver_maps, MapHandleList* transitioned_maps,
216 CodeHandleList* handlers, KeyedAccessStoreMode store_mode) { 216 CodeHandleList* handlers, KeyedAccessStoreMode store_mode) {
217 for (int i = 0; i < receiver_maps->length(); ++i) { 217 for (int i = 0; i < receiver_maps->length(); ++i) {
218 Handle<Map> receiver_map(receiver_maps->at(i)); 218 Handle<Map> receiver_map(receiver_maps->at(i));
219 Handle<Code> cached_stub; 219 Handle<Code> cached_stub;
220 Handle<Map> transitioned_map = 220 Handle<Map> transitioned_map;
221 Map::FindTransitionedMap(receiver_map, receiver_maps); 221 {
222 Map* tmap = receiver_map->FindElementsKindTransitionedMap(receiver_maps);
223 if (tmap != nullptr) transitioned_map = handle(tmap);
224 }
222 225
223 // TODO(mvstanton): The code below is doing pessimistic elements 226 // TODO(mvstanton): The code below is doing pessimistic elements
224 // transitions. I would like to stop doing that and rely on Allocation Site 227 // transitions. I would like to stop doing that and rely on Allocation Site
225 // Tracking to do a better job of ensuring the data types are what they need 228 // Tracking to do a better job of ensuring the data types are what they need
226 // to be. Not all the elements are in place yet, pessimistic elements 229 // to be. Not all the elements are in place yet, pessimistic elements
227 // transitions are still important for performance. 230 // transitions are still important for performance.
228 bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE; 231 bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE;
229 ElementsKind elements_kind = receiver_map->elements_kind(); 232 ElementsKind elements_kind = receiver_map->elements_kind();
230 if (!transitioned_map.is_null()) { 233 if (!transitioned_map.is_null()) {
231 cached_stub = 234 cached_stub =
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 292
290 TailCallBuiltin(masm(), Builtins::kKeyedStoreIC_Miss); 293 TailCallBuiltin(masm(), Builtins::kKeyedStoreIC_Miss);
291 294
292 return GetCode(kind(), Code::NORMAL, factory()->empty_string()); 295 return GetCode(kind(), Code::NORMAL, factory()->empty_string());
293 } 296 }
294 297
295 298
296 #undef __ 299 #undef __
297 } // namespace internal 300 } // namespace internal
298 } // namespace v8 301 } // namespace v8
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698