| 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/arm/lithium-arm.h" | 5 #include "src/crankshaft/arm/lithium-arm.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
| 10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
| (...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 instr = AssignEnvironment(instr); | 870 instr = AssignEnvironment(instr); |
| 871 } | 871 } |
| 872 chunk_->AddInstruction(instr, current_block_); | 872 chunk_->AddInstruction(instr, current_block_); |
| 873 | 873 |
| 874 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); | 874 CreateLazyBailoutForCall(current_block_, instr, hydrogen_val); |
| 875 } | 875 } |
| 876 | 876 |
| 877 | 877 |
| 878 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 878 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
| 879 LInstruction* result = new (zone()) LPrologue(); | 879 LInstruction* result = new (zone()) LPrologue(); |
| 880 if (info_->scope()->num_heap_slots() > 0) { | 880 if (info_->scope()->NeedsContext()) { |
| 881 result = MarkAsCall(result, instr); | 881 result = MarkAsCall(result, instr); |
| 882 } | 882 } |
| 883 return result; | 883 return result; |
| 884 } | 884 } |
| 885 | 885 |
| 886 | 886 |
| 887 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 887 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
| 888 return new(zone()) LGoto(instr->FirstSuccessor()); | 888 return new(zone()) LGoto(instr->FirstSuccessor()); |
| 889 } | 889 } |
| 890 | 890 |
| (...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2497 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2497 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2498 LOperand* object = UseRegister(instr->object()); | 2498 LOperand* object = UseRegister(instr->object()); |
| 2499 LOperand* index = UseTempRegister(instr->index()); | 2499 LOperand* index = UseTempRegister(instr->index()); |
| 2500 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2500 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2501 LInstruction* result = DefineSameAsFirst(load); | 2501 LInstruction* result = DefineSameAsFirst(load); |
| 2502 return AssignPointerMap(result); | 2502 return AssignPointerMap(result); |
| 2503 } | 2503 } |
| 2504 | 2504 |
| 2505 } // namespace internal | 2505 } // namespace internal |
| 2506 } // namespace v8 | 2506 } // namespace v8 |
| OLD | NEW |