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

Unified Diff: src/heap.cc

Issue 103243005: Captured arguments object materialization (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed code review comments 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
« src/deoptimizer.cc ('K') | « src/heap.h ('k') | src/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index 862e2eaa24b205bb3051458a5a50d1c06c30c18d..5ab028c284b6ec331369aca3d3c2806f3ba72bab 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -3293,6 +3293,15 @@ bool Heap::CreateInitialObjects() {
Symbol::cast(obj)->set_is_private(true);
set_observed_symbol(Symbol::cast(obj));
+ { MaybeObject* maybe_obj = AllocateFixedArray(1, TENURED);
+ if (!maybe_obj->ToObject(&obj)) return false;
+ MaybeObject* maybe_obj_el = AllocateFixedArray(0, TENURED);
+ Object* obj_el;
+ if (!maybe_obj_el->ToObject(&obj_el)) return false;
+ FixedArray::cast(obj)->set(0, obj_el);
+ }
+ set_materialized_objects(FixedArray::cast(obj));
+
// Handling of script id generation is in Factory::NewScript.
set_last_script_id(Smi::FromInt(v8::Script::kNoScriptId));
« src/deoptimizer.cc ('K') | « src/heap.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698