| 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 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
| 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
| 7 | 7 |
| 8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
| 9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
| 10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
| 11 #include "src/safepoint-table.h" | 11 #include "src/safepoint-table.h" |
| 12 #include "src/utils.h" | 12 #include "src/utils.h" |
| 13 | 13 |
| 14 namespace v8 { | 14 namespace v8 { |
| 15 namespace internal { | 15 namespace internal { |
| 16 | 16 |
| 17 // Forward declarations. | 17 // Forward declarations. |
| 18 class LCodeGen; | 18 class LCodeGen; |
| 19 | 19 |
| 20 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ | 20 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ |
| 21 V(AccessArgumentsAt) \ | 21 V(AccessArgumentsAt) \ |
| 22 V(AddI) \ | 22 V(AddI) \ |
| 23 V(Allocate) \ | 23 V(Allocate) \ |
| 24 V(AllocateBlockContext) \ | |
| 25 V(ApplyArguments) \ | 24 V(ApplyArguments) \ |
| 26 V(ArgumentsElements) \ | 25 V(ArgumentsElements) \ |
| 27 V(ArgumentsLength) \ | 26 V(ArgumentsLength) \ |
| 28 V(ArithmeticD) \ | 27 V(ArithmeticD) \ |
| 29 V(ArithmeticT) \ | 28 V(ArithmeticT) \ |
| 30 V(BitI) \ | 29 V(BitI) \ |
| 31 V(BoundsCheck) \ | 30 V(BoundsCheck) \ |
| 32 V(Branch) \ | 31 V(Branch) \ |
| 33 V(CallJSFunction) \ | 32 V(CallJSFunction) \ |
| 34 V(CallWithDescriptor) \ | 33 V(CallWithDescriptor) \ |
| (...skipping 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2561 explicit LStoreFrameContext(LOperand* context) { | 2560 explicit LStoreFrameContext(LOperand* context) { |
| 2562 inputs_[0] = context; | 2561 inputs_[0] = context; |
| 2563 } | 2562 } |
| 2564 | 2563 |
| 2565 LOperand* context() { return inputs_[0]; } | 2564 LOperand* context() { return inputs_[0]; } |
| 2566 | 2565 |
| 2567 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") | 2566 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") |
| 2568 }; | 2567 }; |
| 2569 | 2568 |
| 2570 | 2569 |
| 2571 class LAllocateBlockContext: public LTemplateInstruction<1, 2, 0> { | |
| 2572 public: | |
| 2573 LAllocateBlockContext(LOperand* context, LOperand* function) { | |
| 2574 inputs_[0] = context; | |
| 2575 inputs_[1] = function; | |
| 2576 } | |
| 2577 | |
| 2578 LOperand* context() { return inputs_[0]; } | |
| 2579 LOperand* function() { return inputs_[1]; } | |
| 2580 | |
| 2581 Handle<ScopeInfo> scope_info() { return hydrogen()->scope_info(); } | |
| 2582 | |
| 2583 DECLARE_CONCRETE_INSTRUCTION(AllocateBlockContext, "allocate-block-context") | |
| 2584 DECLARE_HYDROGEN_ACCESSOR(AllocateBlockContext) | |
| 2585 }; | |
| 2586 | |
| 2587 | |
| 2588 class LChunkBuilder; | 2570 class LChunkBuilder; |
| 2589 class LPlatformChunk final : public LChunk { | 2571 class LPlatformChunk final : public LChunk { |
| 2590 public: | 2572 public: |
| 2591 LPlatformChunk(CompilationInfo* info, HGraph* graph) | 2573 LPlatformChunk(CompilationInfo* info, HGraph* graph) |
| 2592 : LChunk(info, graph) { } | 2574 : LChunk(info, graph) { } |
| 2593 | 2575 |
| 2594 int GetNextSpillIndex(RegisterKind kind); | 2576 int GetNextSpillIndex(RegisterKind kind); |
| 2595 LOperand* GetNextSpillSlot(RegisterKind kind); | 2577 LOperand* GetNextSpillSlot(RegisterKind kind); |
| 2596 }; | 2578 }; |
| 2597 | 2579 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2731 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2713 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2732 }; | 2714 }; |
| 2733 | 2715 |
| 2734 #undef DECLARE_HYDROGEN_ACCESSOR | 2716 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2735 #undef DECLARE_CONCRETE_INSTRUCTION | 2717 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2736 | 2718 |
| 2737 } // namespace internal | 2719 } // namespace internal |
| 2738 } // namespace v8 | 2720 } // namespace v8 |
| 2739 | 2721 |
| 2740 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2722 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |