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

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

Issue 23618002: Hydrogenisation of binops (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 7 years, 3 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.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 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after
1627 } 1627 }
1628 LOperand* elements() { return inputs_[0]; } 1628 LOperand* elements() { return inputs_[0]; }
1629 LOperand* key() { return inputs_[1]; } 1629 LOperand* key() { return inputs_[1]; }
1630 ElementsKind elements_kind() const { 1630 ElementsKind elements_kind() const {
1631 return hydrogen()->elements_kind(); 1631 return hydrogen()->elements_kind();
1632 } 1632 }
1633 bool is_external() const { 1633 bool is_external() const {
1634 return hydrogen()->is_external(); 1634 return hydrogen()->is_external();
1635 } 1635 }
1636 1636
1637 virtual bool ClobbersDoubleRegisters() const V8_OVERRIDE {
1638 return !CpuFeatures::IsSupported(SSE2) &&
1639 !IsDoubleOrFloatElementsKind(hydrogen()->elements_kind());
1640 }
1641
1642 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") 1637 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed")
1643 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) 1638 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed)
1644 1639
1645 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1640 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1646 uint32_t additional_index() const { return hydrogen()->index_offset(); } 1641 uint32_t additional_index() const { return hydrogen()->index_offset(); }
1647 bool key_is_smi() { 1642 bool key_is_smi() {
1648 return hydrogen()->key()->representation().IsTagged(); 1643 return hydrogen()->key()->representation().IsTagged();
1649 } 1644 }
1650 }; 1645 };
1651 1646
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
2182 public: 2177 public:
2183 LTaggedToI(LOperand* value, LOperand* temp) { 2178 LTaggedToI(LOperand* value, LOperand* temp) {
2184 inputs_[0] = value; 2179 inputs_[0] = value;
2185 temps_[0] = temp; 2180 temps_[0] = temp;
2186 } 2181 }
2187 2182
2188 LOperand* value() { return inputs_[0]; } 2183 LOperand* value() { return inputs_[0]; }
2189 LOperand* temp() { return temps_[0]; } 2184 LOperand* temp() { return temps_[0]; }
2190 2185
2191 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") 2186 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i")
2192 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) 2187 DECLARE_HYDROGEN_ACCESSOR(Change)
2193 2188
2194 bool truncating() { return hydrogen()->CanTruncateToInt32(); } 2189 bool truncating() { return hydrogen()->CanTruncateToInt32(); }
2195 }; 2190 };
2196 2191
2197 2192
2198 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { 2193 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> {
2199 public: 2194 public:
2200 explicit LSmiTag(LOperand* value) { 2195 explicit LSmiTag(LOperand* value) {
2201 inputs_[0] = value; 2196 inputs_[0] = value;
2202 } 2197 }
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
2900 int* argument_index_accumulator, 2895 int* argument_index_accumulator,
2901 ZoneList<HValue*>* objects_to_materialize); 2896 ZoneList<HValue*>* objects_to_materialize);
2902 2897
2903 void VisitInstruction(HInstruction* current); 2898 void VisitInstruction(HInstruction* current);
2904 2899
2905 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); 2900 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block);
2906 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); 2901 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr);
2907 LInstruction* DoArithmeticD(Token::Value op, 2902 LInstruction* DoArithmeticD(Token::Value op,
2908 HArithmeticBinaryOperation* instr); 2903 HArithmeticBinaryOperation* instr);
2909 LInstruction* DoArithmeticT(Token::Value op, 2904 LInstruction* DoArithmeticT(Token::Value op,
2910 HArithmeticBinaryOperation* instr); 2905 HBinaryOperation* instr);
2911 2906
2912 LOperand* GetStoreKeyedValueOperand(HStoreKeyed* instr); 2907 LOperand* GetStoreKeyedValueOperand(HStoreKeyed* instr);
2913 2908
2914 LPlatformChunk* chunk_; 2909 LPlatformChunk* chunk_;
2915 CompilationInfo* info_; 2910 CompilationInfo* info_;
2916 HGraph* const graph_; 2911 HGraph* const graph_;
2917 Zone* zone_; 2912 Zone* zone_;
2918 Status status_; 2913 Status status_;
2919 HInstruction* current_instruction_; 2914 HInstruction* current_instruction_;
2920 HBasicBlock* current_block_; 2915 HBasicBlock* current_block_;
2921 HBasicBlock* next_block_; 2916 HBasicBlock* next_block_;
2922 int argument_count_; 2917 int argument_count_;
2923 LAllocator* allocator_; 2918 LAllocator* allocator_;
2924 int position_; 2919 int position_;
2925 LInstruction* instruction_pending_deoptimization_environment_; 2920 LInstruction* instruction_pending_deoptimization_environment_;
2926 BailoutId pending_deoptimization_ast_id_; 2921 BailoutId pending_deoptimization_ast_id_;
2927 2922
2928 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2923 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2929 }; 2924 };
2930 2925
2931 #undef DECLARE_HYDROGEN_ACCESSOR 2926 #undef DECLARE_HYDROGEN_ACCESSOR
2932 #undef DECLARE_CONCRETE_INSTRUCTION 2927 #undef DECLARE_CONCRETE_INSTRUCTION
2933 2928
2934 } } // namespace v8::internal 2929 } } // namespace v8::internal
2935 2930
2936 #endif // V8_IA32_LITHIUM_IA32_H_ 2931 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698