Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index 0d7884582e025d08ff940d89c6b20e703c7709fa..0a9a7b571bd791c6a4aa4a742babb0b934c6a1a3 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -995,10 +995,11 @@ LEnvironment* LChunkBuilder::CreateEnvironment( |
LEnvironment* outer = |
CreateEnvironment(hydrogen_env->outer(), argument_index_accumulator); |
int ast_id = hydrogen_env->ast_id(); |
- ASSERT(ast_id != AstNode::kNoNumber || hydrogen_env->is_arguments_adaptor()); |
+ ASSERT(ast_id != AstNode::kNoNumber || |
+ hydrogen_env->frame_type() != JS_FUNCTION); |
int value_count = hydrogen_env->length(); |
LEnvironment* result = new LEnvironment(hydrogen_env->closure(), |
- hydrogen_env->is_arguments_adaptor(), |
+ hydrogen_env->frame_type(), |
ast_id, |
hydrogen_env->parameter_count(), |
argument_count_, |
@@ -1020,7 +1021,7 @@ LEnvironment* LChunkBuilder::CreateEnvironment( |
result->AddValue(op, value->representation()); |
} |
- if (!hydrogen_env->is_arguments_adaptor()) { |
+ if (hydrogen_env->frame_type() == JS_FUNCTION) { |
*argument_index_accumulator = argument_index; |
} |
@@ -2256,7 +2257,8 @@ LInstruction* LChunkBuilder::DoEnterInlined(HEnterInlined* instr) { |
instr->arguments_count(), |
instr->function(), |
undefined, |
- instr->call_kind()); |
+ instr->call_kind(), |
+ instr->is_construct()); |
current_block_->UpdateEnvironment(inner); |
chunk_->AddInlinedClosure(instr->closure()); |
return NULL; |