Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index f843f3bc4eb4919ce96d41ca2c33cc970b79286d..38e7480d3df87c3222972c67dbb26ae1f590eb06 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -2238,6 +2238,7 @@ LInstruction* LChunkBuilder::DoDeleteProperty(HDeleteProperty* instr) { |
LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
+ ASSERT(argument_count_ == 0); |
allocator_->MarkAsOsrEntry(); |
current_block_->last_environment()->set_ast_id(instr->ast_id()); |
return AssignEnvironment(new(zone()) LOsrEntry); |
@@ -2385,7 +2386,7 @@ LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
HEnvironment* env = current_block_->last_environment(); |
- if (instr->arguments_pushed()) { |
+ if (env->entry()->arguments_pushed()) { |
int argument_count = env->arguments_environment()->parameter_count(); |
pop = new(zone()) LDrop(argument_count); |
argument_count_ -= argument_count; |