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/x87/lithium-x87.h" | 5 #include "src/crankshaft/x87/lithium-x87.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_X87 | 9 #if V8_TARGET_ARCH_X87 |
10 | 10 |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
918 chunk_->AddInstruction(clobber, current_block_); | 918 chunk_->AddInstruction(clobber, current_block_); |
919 } | 919 } |
920 chunk_->AddInstruction(instr, current_block_); | 920 chunk_->AddInstruction(instr, current_block_); |
921 | 921 |
922 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); | 922 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); |
923 } | 923 } |
924 | 924 |
925 | 925 |
926 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 926 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
927 LInstruction* result = new (zone()) LPrologue(); | 927 LInstruction* result = new (zone()) LPrologue(); |
928 if (info_->scope()->num_heap_slots() > 0) { | 928 if (info_->scope()->NeedsContext()) { |
929 result = MarkAsCall(result, instr); | 929 result = MarkAsCall(result, instr); |
930 } | 930 } |
931 return result; | 931 return result; |
932 } | 932 } |
933 | 933 |
934 | 934 |
935 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 935 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
936 return new(zone()) LGoto(instr->FirstSuccessor()); | 936 return new(zone()) LGoto(instr->FirstSuccessor()); |
937 } | 937 } |
938 | 938 |
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2565 LOperand* index = UseTempRegister(instr->index()); | 2565 LOperand* index = UseTempRegister(instr->index()); |
2566 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2566 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2567 LInstruction* result = DefineSameAsFirst(load); | 2567 LInstruction* result = DefineSameAsFirst(load); |
2568 return AssignPointerMap(result); | 2568 return AssignPointerMap(result); |
2569 } | 2569 } |
2570 | 2570 |
2571 } // namespace internal | 2571 } // namespace internal |
2572 } // namespace v8 | 2572 } // namespace v8 |
2573 | 2573 |
2574 #endif // V8_TARGET_ARCH_X87 | 2574 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |