| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index 6a1d82078177de137f699fef083d30835e12f6f5..40d54a6d691dadede991e5ac253e9aa32d025072 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -93,10 +93,6 @@ class JumpPatchSite BASE_EMBEDDED {
|
| // frames-ia32.h for its layout.
|
| void FullCodeGenerator::Generate() {
|
| CompilationInfo* info = info_;
|
| - handler_table_ =
|
| - Handle<HandlerTable>::cast(isolate()->factory()->NewFixedArray(
|
| - HandlerTable::LengthForRange(function()->handler_count()), TENURED));
|
| -
|
| profiling_counter_ = isolate()->factory()->NewCell(
|
| Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate()));
|
| SetFunctionPosition(function());
|
| @@ -2130,7 +2126,8 @@ void FullCodeGenerator::VisitYield(Yield* expr) {
|
| // re-boxing.
|
| __ bind(&l_try);
|
| __ pop(eax); // result
|
| - EnterTryBlock(expr->index(), &l_catch);
|
| + int handler_index = NewHandlerTableEntry();
|
| + EnterTryBlock(handler_index, &l_catch);
|
| const int try_block_size = TryCatch::kElementCount * kPointerSize;
|
| __ push(eax); // result
|
| __ jmp(&l_suspend);
|
| @@ -2140,7 +2137,7 @@ void FullCodeGenerator::VisitYield(Yield* expr) {
|
| const int generator_object_depth = kPointerSize + try_block_size;
|
| __ mov(eax, Operand(esp, generator_object_depth));
|
| __ push(eax); // g
|
| - __ push(Immediate(Smi::FromInt(expr->index()))); // handler-index
|
| + __ push(Immediate(Smi::FromInt(handler_index))); // handler-index
|
| DCHECK(l_continuation.pos() > 0 && Smi::IsValid(l_continuation.pos()));
|
| __ mov(FieldOperand(eax, JSGeneratorObject::kContinuationOffset),
|
| Immediate(Smi::FromInt(l_continuation.pos())));
|
| @@ -2154,7 +2151,7 @@ void FullCodeGenerator::VisitYield(Yield* expr) {
|
| __ pop(eax); // result
|
| EmitReturnSequence();
|
| __ bind(&l_resume); // received in eax
|
| - ExitTryBlock(expr->index());
|
| + ExitTryBlock(handler_index);
|
|
|
| // receiver = iter; f = iter.next; arg = received;
|
| __ bind(&l_next);
|
|
|