Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 8c003a5490147b50fa5b924c7652871ed534e0a4..9999ee1eddc35585408d83d43b21e6e7ae189956 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -1016,9 +1016,6 @@ void LChunkBuilder::DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block) { |
HInstruction* current = block->first(); |
int start = chunk_->instructions()->length(); |
while (current != NULL && !is_aborted()) { |
- if (FLAG_trace_environment) { |
- PrintF("Process instruction %d\n", current->id()); |
- } |
// Code for constants in registers is generated lazily. |
if (!current->EmitAtUses()) { |
VisitInstruction(current); |
@@ -1125,7 +1122,7 @@ LEnvironment* LChunkBuilder::CreateEnvironment(HEnvironment* hydrogen_env) { |
LEnvironment* outer = CreateEnvironment(hydrogen_env->outer()); |
int ast_id = hydrogen_env->ast_id(); |
ASSERT(ast_id != AstNode::kNoNumber); |
- int value_count = hydrogen_env->values()->length(); |
+ int value_count = hydrogen_env->length(); |
LEnvironment* result = new LEnvironment(hydrogen_env->closure(), |
ast_id, |
hydrogen_env->parameter_count(), |
@@ -2063,14 +2060,7 @@ LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) { |
env->Push(value); |
} |
} |
- |
- if (FLAG_trace_environment) { |
- PrintF("Reconstructed environment ast_id=%d, instr_id=%d\n", |
- instr->ast_id(), |
- instr->id()); |
- env->PrintToStd(); |
- } |
- ASSERT(env->values()->length() == instr->environment_height()); |
+ ASSERT(env->length() == instr->environment_length()); |
// If there is an instruction pending deoptimization environment create a |
// lazy bailout instruction to capture the environment. |