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

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

Issue 24521002: Special handle for mul/div minus one when kAllUsesTruncatingToInt32 (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: remove unnecessary ASSERT statement Created 7 years, 2 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
« 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 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 4607 matching lines...) Expand 10 before | Expand all | Expand 10 after
4618 virtual bool IsCommutative() const V8_OVERRIDE { 4618 virtual bool IsCommutative() const V8_OVERRIDE {
4619 return !representation().IsTagged(); 4619 return !representation().IsTagged();
4620 } 4620 }
4621 4621
4622 virtual void UpdateRepresentation(Representation new_rep, 4622 virtual void UpdateRepresentation(Representation new_rep,
4623 HInferRepresentationPhase* h_infer, 4623 HInferRepresentationPhase* h_infer,
4624 const char* reason) V8_OVERRIDE { 4624 const char* reason) V8_OVERRIDE {
4625 HArithmeticBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason); 4625 HArithmeticBinaryOperation::UpdateRepresentation(new_rep, h_infer, reason);
4626 } 4626 }
4627 4627
4628 bool MulMinusOne();
4629
4628 DECLARE_CONCRETE_INSTRUCTION(Mul) 4630 DECLARE_CONCRETE_INSTRUCTION(Mul)
4629 4631
4630 protected: 4632 protected:
4631 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; } 4633 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; }
4632 4634
4633 virtual Range* InferRange(Zone* zone) V8_OVERRIDE; 4635 virtual Range* InferRange(Zone* zone) V8_OVERRIDE;
4634 4636
4635 private: 4637 private:
4636 HMul(HValue* context, HValue* left, HValue* right) 4638 HMul(HValue* context, HValue* left, HValue* right)
4637 : HArithmeticBinaryOperation(context, left, right) { 4639 : HArithmeticBinaryOperation(context, left, right) {
(...skipping 2426 matching lines...) Expand 10 before | Expand all | Expand 10 after
7064 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7066 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7065 }; 7067 };
7066 7068
7067 7069
7068 #undef DECLARE_INSTRUCTION 7070 #undef DECLARE_INSTRUCTION
7069 #undef DECLARE_CONCRETE_INSTRUCTION 7071 #undef DECLARE_CONCRETE_INSTRUCTION
7070 7072
7071 } } // namespace v8::internal 7073 } } // namespace v8::internal
7072 7074
7073 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7075 #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