Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1508)

Side by Side Diff: src/arm/lithium-arm.h

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 V(LoadFieldByIndex) \ 117 V(LoadFieldByIndex) \
118 V(LoadFunctionPrototype) \ 118 V(LoadFunctionPrototype) \
119 V(LoadGlobalCell) \ 119 V(LoadGlobalCell) \
120 V(LoadGlobalGeneric) \ 120 V(LoadGlobalGeneric) \
121 V(LoadKeyed) \ 121 V(LoadKeyed) \
122 V(LoadKeyedGeneric) \ 122 V(LoadKeyedGeneric) \
123 V(LoadNamedField) \ 123 V(LoadNamedField) \
124 V(LoadNamedGeneric) \ 124 V(LoadNamedGeneric) \
125 V(MapEnumLength) \ 125 V(MapEnumLength) \
126 V(MathAbs) \ 126 V(MathAbs) \
127 V(MathClz32) \
128 V(MathExp) \ 127 V(MathExp) \
129 V(MathFloor) \ 128 V(MathFloor) \
130 V(MathFloorOfDiv) \ 129 V(MathFloorOfDiv) \
131 V(MathLog) \ 130 V(MathLog) \
132 V(MathMinMax) \ 131 V(MathMinMax) \
133 V(MathPowHalf) \ 132 V(MathPowHalf) \
134 V(MathRound) \ 133 V(MathRound) \
135 V(MathSqrt) \ 134 V(MathSqrt) \
136 V(ModI) \ 135 V(ModI) \
137 V(MulI) \ 136 V(MulI) \
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 explicit LMathLog(LOperand* value) { 802 explicit LMathLog(LOperand* value) {
804 inputs_[0] = value; 803 inputs_[0] = value;
805 } 804 }
806 805
807 LOperand* value() { return inputs_[0]; } 806 LOperand* value() { return inputs_[0]; }
808 807
809 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log") 808 DECLARE_CONCRETE_INSTRUCTION(MathLog, "math-log")
810 }; 809 };
811 810
812 811
813 class LMathClz32 V8_FINAL : public LTemplateInstruction<1, 1, 0> {
814 public:
815 explicit LMathClz32(LOperand* value) {
816 inputs_[0] = value;
817 }
818
819 LOperand* value() { return inputs_[0]; }
820
821 DECLARE_CONCRETE_INSTRUCTION(MathClz32, "math-clz32")
822 };
823
824
825 class LMathExp V8_FINAL : public LTemplateInstruction<1, 1, 3> { 812 class LMathExp V8_FINAL : public LTemplateInstruction<1, 1, 3> {
826 public: 813 public:
827 LMathExp(LOperand* value, 814 LMathExp(LOperand* value,
828 LOperand* double_temp, 815 LOperand* double_temp,
829 LOperand* temp1, 816 LOperand* temp1,
830 LOperand* temp2) { 817 LOperand* temp2) {
831 inputs_[0] = value; 818 inputs_[0] = value;
832 temps_[0] = temp1; 819 temps_[0] = temp1;
833 temps_[1] = temp2; 820 temps_[1] = temp2;
834 temps_[2] = double_temp; 821 temps_[2] = double_temp;
(...skipping 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after
2586 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) 2573 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator)
2587 : LChunkBuilderBase(graph->zone()), 2574 : LChunkBuilderBase(graph->zone()),
2588 chunk_(NULL), 2575 chunk_(NULL),
2589 info_(info), 2576 info_(info),
2590 graph_(graph), 2577 graph_(graph),
2591 status_(UNUSED), 2578 status_(UNUSED),
2592 current_instruction_(NULL), 2579 current_instruction_(NULL),
2593 current_block_(NULL), 2580 current_block_(NULL),
2594 next_block_(NULL), 2581 next_block_(NULL),
2595 allocator_(allocator), 2582 allocator_(allocator),
2583 position_(RelocInfo::kNoPosition),
2596 instruction_pending_deoptimization_environment_(NULL), 2584 instruction_pending_deoptimization_environment_(NULL),
2597 pending_deoptimization_ast_id_(BailoutId::None()) { } 2585 pending_deoptimization_ast_id_(BailoutId::None()) { }
2598 2586
2599 // Build the sequence for the graph. 2587 // Build the sequence for the graph.
2600 LPlatformChunk* Build(); 2588 LPlatformChunk* Build();
2601 2589
2602 LInstruction* CheckElideControlInstruction(HControlInstruction* instr); 2590 LInstruction* CheckElideControlInstruction(HControlInstruction* instr);
2603 2591
2604 // Declare methods that deal with the individual node types. 2592 // Declare methods that deal with the individual node types.
2605 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); 2593 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node);
2606 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 2594 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
2607 #undef DECLARE_DO 2595 #undef DECLARE_DO
2608 2596
2609 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); 2597 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend);
2610 LInstruction* DoMultiplySub(HValue* minuend, HMul* mul); 2598 LInstruction* DoMultiplySub(HValue* minuend, HMul* mul);
2611 LInstruction* DoRSub(HSub* instr); 2599 LInstruction* DoRSub(HSub* instr);
2612 2600
2613 static bool HasMagicNumberForDivisor(int32_t divisor); 2601 static bool HasMagicNumberForDivisor(int32_t divisor);
2614 2602
2615 LInstruction* DoMathFloor(HUnaryMathOperation* instr); 2603 LInstruction* DoMathFloor(HUnaryMathOperation* instr);
2616 LInstruction* DoMathRound(HUnaryMathOperation* instr); 2604 LInstruction* DoMathRound(HUnaryMathOperation* instr);
2617 LInstruction* DoMathAbs(HUnaryMathOperation* instr); 2605 LInstruction* DoMathAbs(HUnaryMathOperation* instr);
2618 LInstruction* DoMathLog(HUnaryMathOperation* instr); 2606 LInstruction* DoMathLog(HUnaryMathOperation* instr);
2619 LInstruction* DoMathExp(HUnaryMathOperation* instr); 2607 LInstruction* DoMathExp(HUnaryMathOperation* instr);
2620 LInstruction* DoMathSqrt(HUnaryMathOperation* instr); 2608 LInstruction* DoMathSqrt(HUnaryMathOperation* instr);
2621 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr); 2609 LInstruction* DoMathPowHalf(HUnaryMathOperation* instr);
2622 LInstruction* DoMathClz32(HUnaryMathOperation* instr);
2623 2610
2624 private: 2611 private:
2625 enum Status { 2612 enum Status {
2626 UNUSED, 2613 UNUSED,
2627 BUILDING, 2614 BUILDING,
2628 DONE, 2615 DONE,
2629 ABORTED 2616 ABORTED
2630 }; 2617 };
2631 2618
2632 LPlatformChunk* chunk() const { return chunk_; } 2619 LPlatformChunk* chunk() const { return chunk_; }
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
2723 HBinaryOperation* instr); 2710 HBinaryOperation* instr);
2724 2711
2725 LPlatformChunk* chunk_; 2712 LPlatformChunk* chunk_;
2726 CompilationInfo* info_; 2713 CompilationInfo* info_;
2727 HGraph* const graph_; 2714 HGraph* const graph_;
2728 Status status_; 2715 Status status_;
2729 HInstruction* current_instruction_; 2716 HInstruction* current_instruction_;
2730 HBasicBlock* current_block_; 2717 HBasicBlock* current_block_;
2731 HBasicBlock* next_block_; 2718 HBasicBlock* next_block_;
2732 LAllocator* allocator_; 2719 LAllocator* allocator_;
2720 int position_;
2733 LInstruction* instruction_pending_deoptimization_environment_; 2721 LInstruction* instruction_pending_deoptimization_environment_;
2734 BailoutId pending_deoptimization_ast_id_; 2722 BailoutId pending_deoptimization_ast_id_;
2735 2723
2736 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2724 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2737 }; 2725 };
2738 2726
2739 #undef DECLARE_HYDROGEN_ACCESSOR 2727 #undef DECLARE_HYDROGEN_ACCESSOR
2740 #undef DECLARE_CONCRETE_INSTRUCTION 2728 #undef DECLARE_CONCRETE_INSTRUCTION
2741 2729
2742 } } // namespace v8::internal 2730 } } // namespace v8::internal
2743 2731
2744 #endif // V8_ARM_LITHIUM_ARM_H_ 2732 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698