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 "src/crankshaft/ia32/lithium-ia32.h" | 5 #include "src/crankshaft/ia32/lithium-ia32.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
10 | 10 |
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 LInstruction* bailout = LChunkBuilderBase::AssignEnvironment( | 938 LInstruction* bailout = LChunkBuilderBase::AssignEnvironment( |
939 new (zone()) LLazyBailout(), hydrogen_env); | 939 new (zone()) LLazyBailout(), hydrogen_env); |
940 bailout->set_hydrogen_value(hydrogen_value_for_lazy_bailout); | 940 bailout->set_hydrogen_value(hydrogen_value_for_lazy_bailout); |
941 chunk_->AddInstruction(bailout, current_block_); | 941 chunk_->AddInstruction(bailout, current_block_); |
942 } | 942 } |
943 } | 943 } |
944 | 944 |
945 | 945 |
946 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 946 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
947 LInstruction* result = new (zone()) LPrologue(); | 947 LInstruction* result = new (zone()) LPrologue(); |
948 if (info_->num_heap_slots() > 0) { | 948 if (info_->scope()->num_heap_slots() > 0) { |
949 result = MarkAsCall(result, instr); | 949 result = MarkAsCall(result, instr); |
950 } | 950 } |
951 return result; | 951 return result; |
952 } | 952 } |
953 | 953 |
954 | 954 |
955 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 955 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
956 return new(zone()) LGoto(instr->FirstSuccessor()); | 956 return new(zone()) LGoto(instr->FirstSuccessor()); |
957 } | 957 } |
958 | 958 |
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2624 LOperand* index = UseTempRegister(instr->index()); | 2624 LOperand* index = UseTempRegister(instr->index()); |
2625 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2625 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2626 LInstruction* result = DefineSameAsFirst(load); | 2626 LInstruction* result = DefineSameAsFirst(load); |
2627 return AssignPointerMap(result); | 2627 return AssignPointerMap(result); |
2628 } | 2628 } |
2629 | 2629 |
2630 } // namespace internal | 2630 } // namespace internal |
2631 } // namespace v8 | 2631 } // namespace v8 |
2632 | 2632 |
2633 #endif // V8_TARGET_ARCH_IA32 | 2633 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |