OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "v8.h" | 5 #include "v8.h" |
6 #include "lithium.h" | 6 #include "lithium.h" |
7 #include "scopes.h" | 7 #include "scopes.h" |
8 #include "serialize.h" | 8 #include "serialize.h" |
9 | 9 |
10 #if V8_TARGET_ARCH_IA32 | 10 #if V8_TARGET_ARCH_IA32 |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 // Recursively store all the nested captured objects into the environment | 605 // Recursively store all the nested captured objects into the environment |
606 for (int i = is_arguments ? 1 : 0; i < length; ++i) { | 606 for (int i = is_arguments ? 1 : 0; i < length; ++i) { |
607 HValue* arg_value = value->OperandAt(i); | 607 HValue* arg_value = value->OperandAt(i); |
608 if (arg_value->IsArgumentsObject() || arg_value->IsCapturedObject()) { | 608 if (arg_value->IsArgumentsObject() || arg_value->IsCapturedObject()) { |
609 AddObjectToMaterialize(arg_value, objects_to_materialize, result); | 609 AddObjectToMaterialize(arg_value, objects_to_materialize, result); |
610 } | 610 } |
611 } | 611 } |
612 } | 612 } |
613 | 613 |
614 | 614 |
615 LInstruction* LChunkBuilder::CheckElideControlInstruction( | |
616 HControlInstruction* instr) { | |
617 HBasicBlock* successor; | |
618 if (!instr->KnownSuccessorBlock(&successor)) return NULL; | |
619 return new(zone()) LGoto(successor); | |
620 } | |
621 | |
622 | |
623 LPhase::~LPhase() { | 615 LPhase::~LPhase() { |
624 if (ShouldProduceTraceOutput()) { | 616 if (ShouldProduceTraceOutput()) { |
625 isolate()->GetHTracer()->TraceLithium(name(), chunk_); | 617 isolate()->GetHTracer()->TraceLithium(name(), chunk_); |
626 } | 618 } |
627 } | 619 } |
628 | 620 |
629 | 621 |
630 } } // namespace v8::internal | 622 } } // namespace v8::internal |
OLD | NEW |