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

Side by Side Diff: src/hydrogen-instructions.h

Issue 24205004: Rollback trunk to 3.21.16.2 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: 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/hydrogen-alias-analysis.h ('k') | src/hydrogen-instructions.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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 V(Goto) \ 121 V(Goto) \
122 V(HasCachedArrayIndexAndBranch) \ 122 V(HasCachedArrayIndexAndBranch) \
123 V(HasInstanceTypeAndBranch) \ 123 V(HasInstanceTypeAndBranch) \
124 V(InnerAllocatedObject) \ 124 V(InnerAllocatedObject) \
125 V(InstanceOf) \ 125 V(InstanceOf) \
126 V(InstanceOfKnownGlobal) \ 126 V(InstanceOfKnownGlobal) \
127 V(InstanceSize) \ 127 V(InstanceSize) \
128 V(InvokeFunction) \ 128 V(InvokeFunction) \
129 V(IsConstructCallAndBranch) \ 129 V(IsConstructCallAndBranch) \
130 V(IsObjectAndBranch) \ 130 V(IsObjectAndBranch) \
131 V(IsNumberAndBranch) \
131 V(IsStringAndBranch) \ 132 V(IsStringAndBranch) \
132 V(IsSmiAndBranch) \ 133 V(IsSmiAndBranch) \
133 V(IsUndetectableAndBranch) \ 134 V(IsUndetectableAndBranch) \
134 V(LeaveInlined) \ 135 V(LeaveInlined) \
135 V(LoadContextSlot) \ 136 V(LoadContextSlot) \
136 V(LoadExternalArrayPointer) \ 137 V(LoadExternalArrayPointer) \
137 V(LoadFieldByIndex) \ 138 V(LoadFieldByIndex) \
138 V(LoadFunctionPrototype) \ 139 V(LoadFunctionPrototype) \
139 V(LoadGlobalCell) \ 140 V(LoadGlobalCell) \
140 V(LoadGlobalGeneric) \ 141 V(LoadGlobalGeneric) \
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 HValue* RedefinedOperand() { 775 HValue* RedefinedOperand() {
775 int index = RedefinedOperandIndex(); 776 int index = RedefinedOperandIndex();
776 return index == kNoRedefinedOperand ? NULL : OperandAt(index); 777 return index == kNoRedefinedOperand ? NULL : OperandAt(index);
777 } 778 }
778 779
779 // A purely informative definition is an idef that will not emit code and 780 // A purely informative definition is an idef that will not emit code and
780 // should therefore be removed from the graph in the RestoreActualValues 781 // should therefore be removed from the graph in the RestoreActualValues
781 // phase (so that live ranges will be shorter). 782 // phase (so that live ranges will be shorter).
782 virtual bool IsPurelyInformativeDefinition() { return false; } 783 virtual bool IsPurelyInformativeDefinition() { return false; }
783 784
784 // This method must always return the original HValue SSA definition, 785 // This method must always return the original HValue SSA definition
785 // regardless of any chain of iDefs of this value. 786 // (regardless of any iDef of this value).
786 HValue* ActualValue() { 787 HValue* ActualValue() {
787 HValue* value = this; 788 int index = RedefinedOperandIndex();
788 int index; 789 return index == kNoRedefinedOperand ? this : OperandAt(index);
789 while ((index = value->RedefinedOperandIndex()) != kNoRedefinedOperand) {
790 value = value->OperandAt(index);
791 }
792 return value;
793 } 790 }
794 791
795 bool IsInteger32Constant(); 792 bool IsInteger32Constant();
796 int32_t GetInteger32Constant(); 793 int32_t GetInteger32Constant();
797 bool EqualsInteger32Constant(int32_t value); 794 bool EqualsInteger32Constant(int32_t value);
798 795
799 bool IsDefinedAfter(HBasicBlock* other) const; 796 bool IsDefinedAfter(HBasicBlock* other) const;
800 797
801 // Operands. 798 // Operands.
802 virtual int OperandCount() = 0; 799 virtual int OperandCount() = 0;
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 : reason_(reason), type_(type) {} 1296 : reason_(reason), type_(type) {}
1300 1297
1301 const char* reason_; 1298 const char* reason_;
1302 Deoptimizer::BailoutType type_; 1299 Deoptimizer::BailoutType type_;
1303 }; 1300 };
1304 1301
1305 1302
1306 // Inserts an int3/stop break instruction for debugging purposes. 1303 // Inserts an int3/stop break instruction for debugging purposes.
1307 class HDebugBreak V8_FINAL : public HTemplateInstruction<0> { 1304 class HDebugBreak V8_FINAL : public HTemplateInstruction<0> {
1308 public: 1305 public:
1309 DECLARE_INSTRUCTION_FACTORY_P0(HDebugBreak);
1310
1311 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 1306 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
1312 return Representation::None(); 1307 return Representation::None();
1313 } 1308 }
1314 1309
1315 DECLARE_CONCRETE_INSTRUCTION(DebugBreak) 1310 DECLARE_CONCRETE_INSTRUCTION(DebugBreak)
1316 }; 1311 };
1317 1312
1318 1313
1319 class HGoto V8_FINAL : public HTemplateControlInstruction<1, 0> { 1314 class HGoto V8_FINAL : public HTemplateControlInstruction<1, 0> {
1320 public: 1315 public:
(...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2782 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; } 2777 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; }
2783 2778
2784 private: 2779 private:
2785 explicit HCheckSmi(HValue* value) : HUnaryOperation(value, HType::Smi()) { 2780 explicit HCheckSmi(HValue* value) : HUnaryOperation(value, HType::Smi()) {
2786 set_representation(Representation::Smi()); 2781 set_representation(Representation::Smi());
2787 SetFlag(kUseGVN); 2782 SetFlag(kUseGVN);
2788 } 2783 }
2789 }; 2784 };
2790 2785
2791 2786
2787 class HIsNumberAndBranch V8_FINAL : public HUnaryControlInstruction {
2788 public:
2789 explicit HIsNumberAndBranch(HValue* value)
2790 : HUnaryControlInstruction(value, NULL, NULL) {
2791 SetFlag(kFlexibleRepresentation);
2792 }
2793
2794 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
2795 return Representation::None();
2796 }
2797
2798 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch)
2799 };
2800
2801
2792 class HCheckHeapObject V8_FINAL : public HUnaryOperation { 2802 class HCheckHeapObject V8_FINAL : public HUnaryOperation {
2793 public: 2803 public:
2794 DECLARE_INSTRUCTION_FACTORY_P1(HCheckHeapObject, HValue*); 2804 DECLARE_INSTRUCTION_FACTORY_P1(HCheckHeapObject, HValue*);
2795 2805
2796 virtual bool HasEscapingOperandAt(int index) V8_OVERRIDE { return false; } 2806 virtual bool HasEscapingOperandAt(int index) V8_OVERRIDE { return false; }
2797 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 2807 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
2798 return Representation::Tagged(); 2808 return Representation::Tagged();
2799 } 2809 }
2800 2810
2801 #ifdef DEBUG 2811 #ifdef DEBUG
(...skipping 4157 matching lines...) Expand 10 before | Expand all | Expand 10 after
6959 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 6969 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
6960 }; 6970 };
6961 6971
6962 6972
6963 #undef DECLARE_INSTRUCTION 6973 #undef DECLARE_INSTRUCTION
6964 #undef DECLARE_CONCRETE_INSTRUCTION 6974 #undef DECLARE_CONCRETE_INSTRUCTION
6965 6975
6966 } } // namespace v8::internal 6976 } } // namespace v8::internal
6967 6977
6968 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6978 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen-alias-analysis.h ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698