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

Unified Diff: src/objects.h

Issue 14850006: Use mutable heapnumbers to store doubles in fields. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index d83d29108fcacf2106b085790d59faeb32e0e1b0..cb67e367ed61e3f071033fd5e13919d3bd8b0e7f 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1080,6 +1080,8 @@ class Object : public MaybeObject {
return true;
}
+ inline MaybeObject* StorageFor(Heap* heap, Representation representation);
+
// Returns true if the object is of the correct type to be used as a
// implementation of a JSObject's elements.
inline bool HasValidElements();
@@ -2135,10 +2137,12 @@ class JSObject: public JSReceiver {
// Add a property to a fast-case object using a map transition to
// new_map.
- MUST_USE_RESULT MaybeObject* AddFastPropertyUsingMap(Map* new_map,
- Name* name,
- Object* value,
- int field_index);
+ MUST_USE_RESULT MaybeObject* AddFastPropertyUsingMap(
+ Map* new_map,
+ Name* name,
+ Object* value,
+ int field_index,
+ Representation representation);
// Add a constant function property to a fast-case object.
// This leaves a CONSTANT_TRANSITION in the old map, and
@@ -2248,7 +2252,7 @@ class JSObject: public JSReceiver {
// Access fast-case object properties at index.
inline Object* FastPropertyAt(int index);
- inline Object* FastPropertyAtPut(int index, Object* value);
+ inline void FastPropertyAtPut(int index, Object* value);
// Access to in object properties.
inline int GetInObjectPropertyOffset(int index);
@@ -5199,7 +5203,8 @@ class Map: public HeapObject {
int NumberOfFields();
- bool InstancesNeedRewriting(int target_number_of_fields,
+ bool InstancesNeedRewriting(Map* target,
+ int target_number_of_fields,
int target_inobject,
int target_unused);
static Handle<Map> GeneralizeRepresentation(

Powered by Google App Engine
This is Rietveld 408576698