Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 177e7349ade6e91ad0fa237d228b2755bb78eb8d..dd3054f2da620dd245db260826510a6d9b69d940 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -2128,6 +2128,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); |
@@ -2267,7 +2268,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; |