| Index: src/full-codegen/ppc/full-codegen-ppc.cc
|
| diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc
|
| index 79779caf395316cd163b3b1f1502bb666ed13fd3..b456ab078be7b56b9b2259b2ce3f59f68268e986 100644
|
| --- a/src/full-codegen/ppc/full-codegen-ppc.cc
|
| +++ b/src/full-codegen/ppc/full-codegen-ppc.cc
|
| @@ -173,7 +173,7 @@ void FullCodeGenerator::Generate() {
|
| bool function_in_register_r4 = true;
|
|
|
| // Possibly allocate a local context.
|
| - if (info->scope()->num_heap_slots() > 0) {
|
| + if (info->scope()->NeedsContext()) {
|
| // Argument to NewContext is the function, which is still in r4.
|
| Comment cmnt(masm_, "[ Allocate context");
|
| bool need_write_barrier = true;
|
| @@ -1176,7 +1176,7 @@ MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var,
|
| Register temp = r7;
|
|
|
| for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) {
|
| - if (s->num_heap_slots() > 0) {
|
| + if (s->NeedsContext()) {
|
| if (s->calls_sloppy_eval()) {
|
| // Check that extension is "the hole".
|
| __ LoadP(temp, ContextMemOperand(context, Context::EXTENSION_INDEX));
|
|
|