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

Unified Diff: src/ic/ic.cc

Issue 1221303019: Fix keyed access of primitive objects in the runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/execution.cc ('k') | src/liveedit.h » ('j') | src/lookup.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 9f75af8eb3c27be29f79626fe66718d4ad1e5fb0..7d940b95111d55bcf0759deed41c755307b239db 100644
--- a/src/ic/ic.cc
+++ b/src/ic/ic.cc
@@ -697,8 +697,7 @@ MaybeHandle<Object> LoadIC::Load(Handle<Object> object, Handle<Name> name) {
Handle<Object> result;
ASSIGN_RETURN_ON_EXCEPTION(
isolate(), result,
- Runtime::GetElementOrCharAt(isolate(), object, index, language_mode()),
- Object);
+ Object::GetElement(isolate(), object, index, language_mode()), Object);
return result;
}
@@ -1553,9 +1552,10 @@ MaybeHandle<Object> StoreIC::Store(Handle<Object> object, Handle<Name> name,
Handle<JSObject> receiver = Handle<JSObject>::cast(object);
Handle<Object> result;
- ASSIGN_RETURN_ON_EXCEPTION(
- isolate(), result,
- JSObject::SetElement(receiver, index, value, language_mode()), Object);
+ ASSIGN_RETURN_ON_EXCEPTION(isolate(), result,
+ JSObject::SetElement(isolate(), receiver, index,
+ value, language_mode()),
+ Object);
return value;
}
« no previous file with comments | « src/execution.cc ('k') | src/liveedit.h » ('j') | src/lookup.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698