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

Side by Side Diff: src/ic.cc

Issue 225403004: Version 3.24.35.28 (merged r20127) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/version.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 // superset of the original IC. Handle those here if the receiver map hasn't 1431 // superset of the original IC. Handle those here if the receiver map hasn't
1432 // changed or it has transitioned to a more general kind. 1432 // changed or it has transitioned to a more general kind.
1433 KeyedAccessStoreMode old_store_mode = 1433 KeyedAccessStoreMode old_store_mode =
1434 KeyedStoreIC::GetKeyedAccessStoreMode(target()->extra_ic_state()); 1434 KeyedStoreIC::GetKeyedAccessStoreMode(target()->extra_ic_state());
1435 Handle<Map> previous_receiver_map = target_receiver_maps.at(0); 1435 Handle<Map> previous_receiver_map = target_receiver_maps.at(0);
1436 if (state() == MONOMORPHIC) { 1436 if (state() == MONOMORPHIC) {
1437 Handle<Map> transitioned_receiver_map = receiver_map; 1437 Handle<Map> transitioned_receiver_map = receiver_map;
1438 if (IsTransitionStoreMode(store_mode)) { 1438 if (IsTransitionStoreMode(store_mode)) {
1439 transitioned_receiver_map = ComputeTransitionedMap(receiver, store_mode); 1439 transitioned_receiver_map = ComputeTransitionedMap(receiver, store_mode);
1440 } 1440 }
1441 if (receiver_map.is_identical_to(previous_receiver_map) || 1441 if ((receiver_map.is_identical_to(previous_receiver_map) &&
1442 IsTransitionStoreMode(store_mode)) ||
1442 IsTransitionOfMonomorphicTarget( 1443 IsTransitionOfMonomorphicTarget(
1443 MapToType<HeapType>(transitioned_receiver_map, isolate()))) { 1444 MapToType<HeapType>(transitioned_receiver_map, isolate()))) {
1444 // If the "old" and "new" maps are in the same elements map family, or 1445 // If the "old" and "new" maps are in the same elements map family, or
1445 // if they at least come from the same origin for a transitioning store, 1446 // if they at least come from the same origin for a transitioning store,
1446 // stay MONOMORPHIC and use the map for the most generic ElementsKind. 1447 // stay MONOMORPHIC and use the map for the most generic ElementsKind.
1447 store_mode = GetNonTransitioningStoreMode(store_mode); 1448 store_mode = GetNonTransitioningStoreMode(store_mode);
1448 return isolate()->stub_cache()->ComputeKeyedStoreElement( 1449 return isolate()->stub_cache()->ComputeKeyedStoreElement(
1449 transitioned_receiver_map, strict_mode(), store_mode); 1450 transitioned_receiver_map, strict_mode(), store_mode);
1450 } else if (*previous_receiver_map == receiver->map() && 1451 } else if (*previous_receiver_map == receiver->map() &&
1451 old_store_mode == STANDARD_STORE && 1452 old_store_mode == STANDARD_STORE &&
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
2811 #undef ADDR 2812 #undef ADDR
2812 }; 2813 };
2813 2814
2814 2815
2815 Address IC::AddressFromUtilityId(IC::UtilityId id) { 2816 Address IC::AddressFromUtilityId(IC::UtilityId id) {
2816 return IC_utilities[id]; 2817 return IC_utilities[id];
2817 } 2818 }
2818 2819
2819 2820
2820 } } // namespace v8::internal 2821 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698