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/mips/lithium-mips.h" | 5 #include "src/crankshaft/mips/lithium-mips.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 instr = AssignEnvironment(instr); | 880 instr = AssignEnvironment(instr); |
881 } | 881 } |
882 chunk_->AddInstruction(instr, current_block_); | 882 chunk_->AddInstruction(instr, current_block_); |
883 | 883 |
884 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); | 884 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); |
885 } | 885 } |
886 | 886 |
887 | 887 |
888 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 888 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
889 LInstruction* result = new (zone()) LPrologue(); | 889 LInstruction* result = new (zone()) LPrologue(); |
890 if (info_->scope()->num_heap_slots() > 0) { | 890 if (info_->scope()->NeedsContext()) { |
891 result = MarkAsCall(result, instr); | 891 result = MarkAsCall(result, instr); |
892 } | 892 } |
893 return result; | 893 return result; |
894 } | 894 } |
895 | 895 |
896 | 896 |
897 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 897 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
898 return new(zone()) LGoto(instr->FirstSuccessor()); | 898 return new(zone()) LGoto(instr->FirstSuccessor()); |
899 } | 899 } |
900 | 900 |
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2446 LOperand* index = UseTempRegister(instr->index()); | 2446 LOperand* index = UseTempRegister(instr->index()); |
2447 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2447 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2448 LInstruction* result = DefineSameAsFirst(load); | 2448 LInstruction* result = DefineSameAsFirst(load); |
2449 return AssignPointerMap(result); | 2449 return AssignPointerMap(result); |
2450 } | 2450 } |
2451 | 2451 |
2452 } // namespace internal | 2452 } // namespace internal |
2453 } // namespace v8 | 2453 } // namespace v8 |
2454 | 2454 |
2455 #endif // V8_TARGET_ARCH_MIPS | 2455 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |