| Index: src/full-codegen.cc
|
| diff --git a/src/full-codegen.cc b/src/full-codegen.cc
|
| index 6c798ac670ed507be0476f9c564e96d1257d3764..fa7dc88fc5b28d04b7a0b282b5b48d2cd1a5f756 100644
|
| --- a/src/full-codegen.cc
|
| +++ b/src/full-codegen.cc
|
| @@ -816,9 +816,8 @@ void FullCodeGenerator::VisitBlock(Block* stmt) {
|
| if (stmt->block_scope() != NULL) {
|
| { Comment cmnt(masm_, "[ Extend block context");
|
| scope_ = stmt->block_scope();
|
| - Handle<SerializedScopeInfo> scope_info = scope_->GetSerializedScopeInfo();
|
| - int heap_slots =
|
| - scope_info->NumberOfContextSlots() - Context::MIN_CONTEXT_SLOTS;
|
| + Handle<ScopeInfo> scope_info = scope_->GetScopeInfo();
|
| + int heap_slots = scope_info->ContextLength() - Context::MIN_CONTEXT_SLOTS;
|
| __ Push(scope_info);
|
| PushFunctionArgumentForContextAllocation();
|
| if (heap_slots <= FastNewBlockContextStub::kMaximumSlots) {
|
|
|