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

Unified Diff: src/factory.cc

Issue 1659663003: Version 4.9.385.15 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.9
Patch Set: Created 4 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/compiler/js-typed-lowering.cc ('k') | test/mjsunit/harmony/regress/regress-crbug-571149.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 4701c2154d0efacaed35e0ef433de5145de18775..f03e6b2e6170deabb79d73ce89af07aa077d0b23 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -831,8 +831,7 @@ Handle<Context> Factory::NewWithContext(Handle<JSFunction> function,
Handle<Context> Factory::NewBlockContext(Handle<JSFunction> function,
Handle<Context> previous,
Handle<ScopeInfo> scope_info) {
- Handle<FixedArray> array =
- NewFixedArrayWithHoles(scope_info->ContextLength());
+ Handle<FixedArray> array = NewFixedArray(scope_info->ContextLength());
array->set_map_no_write_barrier(*block_context_map());
Handle<Context> context = Handle<Context>::cast(array);
context->set_closure(*function);
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/mjsunit/harmony/regress/regress-crbug-571149.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698