| 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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 instr = AssignEnvironment(instr); | 903 instr = AssignEnvironment(instr); |
| 904 } | 904 } |
| 905 chunk_->AddInstruction(instr, current_block_); | 905 chunk_->AddInstruction(instr, current_block_); |
| 906 | 906 |
| 907 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); | 907 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); |
| 908 } | 908 } |
| 909 | 909 |
| 910 | 910 |
| 911 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 911 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
| 912 LInstruction* result = new (zone()) LPrologue(); | 912 LInstruction* result = new (zone()) LPrologue(); |
| 913 if (info_->scope()->num_heap_slots() > 0) { | 913 if (info_->scope()->NeedsContext()) { |
| 914 result = MarkAsCall(result, instr); | 914 result = MarkAsCall(result, instr); |
| 915 } | 915 } |
| 916 return result; | 916 return result; |
| 917 } | 917 } |
| 918 | 918 |
| 919 | 919 |
| 920 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 920 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
| 921 return new(zone()) LGoto(instr->FirstSuccessor()); | 921 return new(zone()) LGoto(instr->FirstSuccessor()); |
| 922 } | 922 } |
| 923 | 923 |
| (...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2563 LOperand* index = UseTempRegister(instr->index()); | 2563 LOperand* index = UseTempRegister(instr->index()); |
| 2564 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2564 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2565 LInstruction* result = DefineSameAsFirst(load); | 2565 LInstruction* result = DefineSameAsFirst(load); |
| 2566 return AssignPointerMap(result); | 2566 return AssignPointerMap(result); |
| 2567 } | 2567 } |
| 2568 | 2568 |
| 2569 } // namespace internal | 2569 } // namespace internal |
| 2570 } // namespace v8 | 2570 } // namespace v8 |
| 2571 | 2571 |
| 2572 #endif // V8_TARGET_ARCH_IA32 | 2572 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |