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

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

Issue 7489043: Better range information for logical shift right >>>. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 5 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 | « no previous file | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 Intersect(other); 245 Intersect(other);
246 next_ = other; 246 next_ = other;
247 } 247 }
248 248
249 void Intersect(Range* other); 249 void Intersect(Range* other);
250 void Union(Range* other); 250 void Union(Range* other);
251 251
252 void AddConstant(int32_t value); 252 void AddConstant(int32_t value);
253 void Sar(int32_t value); 253 void Sar(int32_t value);
254 void Shl(int32_t value); 254 void Shl(int32_t value);
255 void Shr(int32_t value);
William Hesse 2011/07/25 13:27:03 Unimplemented.
255 bool AddAndCheckOverflow(Range* other); 256 bool AddAndCheckOverflow(Range* other);
256 bool SubAndCheckOverflow(Range* other); 257 bool SubAndCheckOverflow(Range* other);
257 bool MulAndCheckOverflow(Range* other); 258 bool MulAndCheckOverflow(Range* other);
258 259
259 private: 260 private:
260 int32_t lower_; 261 int32_t lower_;
261 int32_t upper_; 262 int32_t upper_;
262 Range* next_; 263 Range* next_;
263 bool can_be_minus_zero_; 264 bool can_be_minus_zero_;
264 }; 265 };
(...skipping 2788 matching lines...) Expand 10 before | Expand all | Expand 10 after
3053 protected: 3054 protected:
3054 virtual bool DataEquals(HValue* other) { return true; } 3055 virtual bool DataEquals(HValue* other) { return true; }
3055 }; 3056 };
3056 3057
3057 3058
3058 class HShr: public HBitwiseBinaryOperation { 3059 class HShr: public HBitwiseBinaryOperation {
3059 public: 3060 public:
3060 HShr(HValue* context, HValue* left, HValue* right) 3061 HShr(HValue* context, HValue* left, HValue* right)
3061 : HBitwiseBinaryOperation(context, left, right) { } 3062 : HBitwiseBinaryOperation(context, left, right) { }
3062 3063
3064 virtual Range* InferRange();
3063 virtual HType CalculateInferredType(); 3065 virtual HType CalculateInferredType();
3064 3066
3065 DECLARE_CONCRETE_INSTRUCTION(Shr) 3067 DECLARE_CONCRETE_INSTRUCTION(Shr)
3066 3068
3067 protected: 3069 protected:
3068 virtual bool DataEquals(HValue* other) { return true; } 3070 virtual bool DataEquals(HValue* other) { return true; }
3069 }; 3071 };
3070 3072
3071 3073
3072 class HSar: public HBitwiseBinaryOperation { 3074 class HSar: public HBitwiseBinaryOperation {
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
4190 4192
4191 DECLARE_CONCRETE_INSTRUCTION(In) 4193 DECLARE_CONCRETE_INSTRUCTION(In)
4192 }; 4194 };
4193 4195
4194 #undef DECLARE_INSTRUCTION 4196 #undef DECLARE_INSTRUCTION
4195 #undef DECLARE_CONCRETE_INSTRUCTION 4197 #undef DECLARE_CONCRETE_INSTRUCTION
4196 4198
4197 } } // namespace v8::internal 4199 } } // namespace v8::internal
4198 4200
4199 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 4201 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698