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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 LInstruction* bailout = LChunkBuilderBase::AssignEnvironment( | 905 LInstruction* bailout = LChunkBuilderBase::AssignEnvironment( |
906 new (zone()) LLazyBailout(), hydrogen_env); | 906 new (zone()) LLazyBailout(), hydrogen_env); |
907 bailout->set_hydrogen_value(hydrogen_value_for_lazy_bailout); | 907 bailout->set_hydrogen_value(hydrogen_value_for_lazy_bailout); |
908 chunk_->AddInstruction(bailout, current_block_); | 908 chunk_->AddInstruction(bailout, current_block_); |
909 } | 909 } |
910 } | 910 } |
911 | 911 |
912 | 912 |
913 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { | 913 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
914 LInstruction* result = new (zone()) LPrologue(); | 914 LInstruction* result = new (zone()) LPrologue(); |
915 if (info_->num_heap_slots() > 0) { | 915 if (info_->scope()->num_heap_slots() > 0) { |
916 result = MarkAsCall(result, instr); | 916 result = MarkAsCall(result, instr); |
917 } | 917 } |
918 return result; | 918 return result; |
919 } | 919 } |
920 | 920 |
921 | 921 |
922 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 922 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
923 return new(zone()) LGoto(instr->FirstSuccessor()); | 923 return new(zone()) LGoto(instr->FirstSuccessor()); |
924 } | 924 } |
925 | 925 |
(...skipping 1632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2558 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2558 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2559 LOperand* object = UseRegister(instr->object()); | 2559 LOperand* object = UseRegister(instr->object()); |
2560 LOperand* index = UseTempRegister(instr->index()); | 2560 LOperand* index = UseTempRegister(instr->index()); |
2561 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2561 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2562 LInstruction* result = DefineSameAsFirst(load); | 2562 LInstruction* result = DefineSameAsFirst(load); |
2563 return AssignPointerMap(result); | 2563 return AssignPointerMap(result); |
2564 } | 2564 } |
2565 | 2565 |
2566 } // namespace internal | 2566 } // namespace internal |
2567 } // namespace v8 | 2567 } // namespace v8 |
OLD | NEW |