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

Unified Diff: src/ic.cc

Issue 147763006: Support loads from primitive values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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/hydrogen-instructions.h ('k') | test/mjsunit/value-wrapper-accessor.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic.cc
diff --git a/src/ic.cc b/src/ic.cc
index b46575794486e9dbc29b75a2eb2d25964b1dba8b..fd86f1e460b661562f48a38cd136bf7d46cc14b3 100644
--- a/src/ic.cc
+++ b/src/ic.cc
@@ -1208,9 +1208,9 @@ Handle<Code> LoadIC::CompileHandler(LookupResult* lookup,
// Use simple field loads for some well-known callback properties.
if (object->IsJSObject()) {
Handle<JSObject> receiver = Handle<JSObject>::cast(object);
- Handle<Map> map(receiver->map());
+ Handle<HeapType> type = IC::MapToType(handle(receiver->map()));
int object_offset;
- if (Accessors::IsJSObjectFieldAccessor(map, name, &object_offset)) {
+ if (Accessors::IsJSObjectFieldAccessor(type, name, &object_offset)) {
return SimpleFieldLoad(object_offset / kPointerSize);
}
}
« no previous file with comments | « src/hydrogen-instructions.h ('k') | test/mjsunit/value-wrapper-accessor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698