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

Unified Diff: src/property.h

Issue 65413003: Make index translate/inobject only rely on the map. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Map* rather than Handle<Map> Created 7 years, 1 month 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.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/property.h
diff --git a/src/property.h b/src/property.h
index 0f78ba478ec8512e8d94fd57a502a42a470c582a..88f1acc0c987661c57ece20fe0ef6c43399f9f34 100644
--- a/src/property.h
+++ b/src/property.h
@@ -150,16 +150,16 @@ class PropertyIndex {
return value();
}
- bool is_inobject(Handle<JSObject> holder) {
+ bool is_inobject(Map* map) {
if (is_header_index()) return true;
- return field_index() < holder->map()->inobject_properties();
+ return field_index() < map->inobject_properties();
}
- int translate(Handle<JSObject> holder) {
+ int translate(Map* map) {
if (is_header_index()) return header_index();
- int index = field_index() - holder->map()->inobject_properties();
+ int index = field_index() - map->inobject_properties();
if (index >= 0) return index;
- return index + holder->map()->instance_size() / kPointerSize;
+ return index + map->instance_size() / kPointerSize;
}
private:
« no previous file with comments | « src/ic.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698