Index: src/deoptimizer.h |
diff --git a/src/deoptimizer.h b/src/deoptimizer.h |
index cd33477e26bc262d900c3d2758b934890f355036..199575496780a8b24e67bb2bccf93c29631e9bf5 100644 |
--- a/src/deoptimizer.h |
+++ b/src/deoptimizer.h |
@@ -57,6 +57,20 @@ class HeapNumberMaterializationDescriptor BASE_EMBEDDED { |
}; |
+class ArgumentsObjectMaterializationDescriptor BASE_EMBEDDED { |
+ public: |
+ ArgumentsObjectMaterializationDescriptor(Address slot_address, int argc) |
+ : slot_address_(slot_address), arguments_length_(argc) { } |
+ |
+ Address slot_address() const { return slot_address_; } |
+ int arguments_length() const { return arguments_length_; } |
+ |
+ private: |
+ Address slot_address_; |
+ int arguments_length_; |
+}; |
+ |
+ |
class OptimizedFunctionVisitor BASE_EMBEDDED { |
public: |
virtual ~OptimizedFunctionVisitor() {} |
@@ -196,7 +210,7 @@ class Deoptimizer : public Malloced { |
~Deoptimizer(); |
- void MaterializeHeapNumbers(); |
+ void MaterializeHeapObjects(JavaScriptFrameIterator* it); |
#ifdef ENABLE_DEBUGGER_SUPPORT |
void MaterializeHeapNumbersForDebuggerInspectableFrame( |
Address parameters_top, |
@@ -305,6 +319,8 @@ class Deoptimizer : public Malloced { |
Object* ComputeLiteral(int index) const; |
+ void AddArgumentsObject(intptr_t slot_address, int argc); |
+ void AddArgumentsObjectValue(intptr_t value); |
void AddDoubleValue(intptr_t slot_address, double value); |
static MemoryChunk* CreateCode(BailoutType type); |
@@ -340,6 +356,8 @@ class Deoptimizer : public Malloced { |
// Array of output frame descriptions. |
FrameDescription** output_; |
+ List<Object*> deferred_arguments_objects_values_; |
+ List<ArgumentsObjectMaterializationDescriptor> deferred_arguments_objects_; |
List<HeapNumberMaterializationDescriptor> deferred_heap_numbers_; |
static const int table_entry_size_; |
@@ -608,7 +626,7 @@ class Translation BASE_EMBEDDED { |
void StoreUint32StackSlot(int index); |
void StoreDoubleStackSlot(int index); |
void StoreLiteral(int literal_id); |
- void StoreArgumentsObject(); |
+ void StoreArgumentsObject(int args_index, int args_length); |
void MarkDuplicate(); |
Zone* zone() const { return zone_; } |