OLD | NEW |
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 V(FunctionLiteral) \ | 98 V(FunctionLiteral) \ |
99 V(GetCachedArrayIndex) \ | 99 V(GetCachedArrayIndex) \ |
100 V(GlobalObject) \ | 100 V(GlobalObject) \ |
101 V(GlobalReceiver) \ | 101 V(GlobalReceiver) \ |
102 V(Goto) \ | 102 V(Goto) \ |
103 V(HasCachedArrayIndexAndBranch) \ | 103 V(HasCachedArrayIndexAndBranch) \ |
104 V(HasInstanceTypeAndBranch) \ | 104 V(HasInstanceTypeAndBranch) \ |
105 V(InnerAllocatedObject) \ | 105 V(InnerAllocatedObject) \ |
106 V(InstanceOf) \ | 106 V(InstanceOf) \ |
107 V(InstanceOfKnownGlobal) \ | 107 V(InstanceOfKnownGlobal) \ |
108 V(InstanceSize) \ | |
109 V(InstructionGap) \ | 108 V(InstructionGap) \ |
110 V(Integer32ToDouble) \ | 109 V(Integer32ToDouble) \ |
111 V(Integer32ToSmi) \ | 110 V(Integer32ToSmi) \ |
112 V(InvokeFunction) \ | 111 V(InvokeFunction) \ |
113 V(IsConstructCallAndBranch) \ | 112 V(IsConstructCallAndBranch) \ |
114 V(IsObjectAndBranch) \ | 113 V(IsObjectAndBranch) \ |
115 V(IsStringAndBranch) \ | 114 V(IsStringAndBranch) \ |
116 V(IsSmiAndBranch) \ | 115 V(IsSmiAndBranch) \ |
117 V(IsUndetectableAndBranch) \ | 116 V(IsUndetectableAndBranch) \ |
118 V(Label) \ | 117 V(Label) \ |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 virtual void SetDeferredLazyDeoptimizationEnvironment( | 1135 virtual void SetDeferredLazyDeoptimizationEnvironment( |
1137 LEnvironment* env) V8_OVERRIDE { | 1136 LEnvironment* env) V8_OVERRIDE { |
1138 lazy_deopt_env_ = env; | 1137 lazy_deopt_env_ = env; |
1139 } | 1138 } |
1140 | 1139 |
1141 private: | 1140 private: |
1142 LEnvironment* lazy_deopt_env_; | 1141 LEnvironment* lazy_deopt_env_; |
1143 }; | 1142 }; |
1144 | 1143 |
1145 | 1144 |
1146 class LInstanceSize V8_FINAL : public LTemplateInstruction<1, 1, 0> { | |
1147 public: | |
1148 explicit LInstanceSize(LOperand* object) { | |
1149 inputs_[0] = object; | |
1150 } | |
1151 | |
1152 LOperand* object() { return inputs_[0]; } | |
1153 | |
1154 DECLARE_CONCRETE_INSTRUCTION(InstanceSize, "instance-size") | |
1155 DECLARE_HYDROGEN_ACCESSOR(InstanceSize) | |
1156 }; | |
1157 | |
1158 | |
1159 class LBoundsCheck V8_FINAL : public LTemplateInstruction<0, 2, 0> { | 1145 class LBoundsCheck V8_FINAL : public LTemplateInstruction<0, 2, 0> { |
1160 public: | 1146 public: |
1161 LBoundsCheck(LOperand* index, LOperand* length) { | 1147 LBoundsCheck(LOperand* index, LOperand* length) { |
1162 inputs_[0] = index; | 1148 inputs_[0] = index; |
1163 inputs_[1] = length; | 1149 inputs_[1] = length; |
1164 } | 1150 } |
1165 | 1151 |
1166 LOperand* index() { return inputs_[0]; } | 1152 LOperand* index() { return inputs_[0]; } |
1167 LOperand* length() { return inputs_[1]; } | 1153 LOperand* length() { return inputs_[1]; } |
1168 | 1154 |
(...skipping 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2882 | 2868 |
2883 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2869 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2884 }; | 2870 }; |
2885 | 2871 |
2886 #undef DECLARE_HYDROGEN_ACCESSOR | 2872 #undef DECLARE_HYDROGEN_ACCESSOR |
2887 #undef DECLARE_CONCRETE_INSTRUCTION | 2873 #undef DECLARE_CONCRETE_INSTRUCTION |
2888 | 2874 |
2889 } } // namespace v8::internal | 2875 } } // namespace v8::internal |
2890 | 2876 |
2891 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2877 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |