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

Unified Diff: src/ic/ic.cc

Issue 755513003: Hydrogen: fix keyed loads with string keys (Closed) Base URL: gh:v8/v8@master
Patch Set: fixes Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ic/ic.h ('k') | src/ic/ic-compiler.h » ('j') | src/ic/ic-compiler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic.cc
diff --git a/src/ic/ic.cc b/src/ic/ic.cc
index 7e7ef15c3d6ddd4da7f7cba6b6e8b1f4dda56bd9..ff4d4deb61dc2c3ef5428268b2c55b18cfc2d939 100644
--- a/src/ic/ic.cc
+++ b/src/ic/ic.cc
@@ -1233,7 +1233,8 @@ Handle<Code> KeyedLoadIC::LoadElementStub(Handle<HeapObject> receiver) {
TargetMaps(&target_receiver_maps);
if (target_receiver_maps.length() == 0) {
- return PropertyICCompiler::ComputeKeyedLoadMonomorphic(receiver_map);
+ return PropertyICCompiler::ComputeKeyedLoadMonomorphic(receiver_map,
+ extra_ic_state());
}
// The first time a receiver is seen that is a transitioned version of the
@@ -1247,7 +1248,8 @@ Handle<Code> KeyedLoadIC::LoadElementStub(Handle<HeapObject> receiver) {
IsMoreGeneralElementsKindTransition(
target_receiver_maps.at(0)->elements_kind(),
Handle<JSObject>::cast(receiver)->GetElementsKind())) {
- return PropertyICCompiler::ComputeKeyedLoadMonomorphic(receiver_map);
+ return PropertyICCompiler::ComputeKeyedLoadMonomorphic(receiver_map,
+ extra_ic_state());
}
DCHECK(state() != GENERIC);
@@ -1268,7 +1270,8 @@ Handle<Code> KeyedLoadIC::LoadElementStub(Handle<HeapObject> receiver) {
return generic_stub();
}
- return PropertyICCompiler::ComputeKeyedLoadPolymorphic(&target_receiver_maps);
+ return PropertyICCompiler::ComputeKeyedLoadPolymorphic(&target_receiver_maps,
+ extra_ic_state());
}
« no previous file with comments | « src/ic/ic.h ('k') | src/ic/ic-compiler.h » ('j') | src/ic/ic-compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698