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

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

Issue 9190047: Fixing issue 1898 (using HChange outside the insert-representation-changes phase). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: . Created 8 years, 11 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 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 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 ASSERT(!value->representation().Equals(to)); 1124 ASSERT(!value->representation().Equals(to));
1125 set_representation(to); 1125 set_representation(to);
1126 set_type(HType::TaggedNumber()); 1126 set_type(HType::TaggedNumber());
1127 SetFlag(kUseGVN); 1127 SetFlag(kUseGVN);
1128 if (deoptimize_on_undefined) SetFlag(kDeoptimizeOnUndefined); 1128 if (deoptimize_on_undefined) SetFlag(kDeoptimizeOnUndefined);
1129 if (is_truncating) SetFlag(kTruncatingToInt32); 1129 if (is_truncating) SetFlag(kTruncatingToInt32);
1130 } 1130 }
1131 1131
1132 virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited); 1132 virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited);
1133 virtual HType CalculateInferredType(); 1133 virtual HType CalculateInferredType();
1134 virtual HValue* Canonicalize();
1134 1135
1135 Representation from() { return value()->representation(); } 1136 Representation from() { return value()->representation(); }
1136 Representation to() { return representation(); } 1137 Representation to() { return representation(); }
1137 bool deoptimize_on_undefined() const { 1138 bool deoptimize_on_undefined() const {
1138 return CheckFlag(kDeoptimizeOnUndefined); 1139 return CheckFlag(kDeoptimizeOnUndefined);
1139 } 1140 }
1140 bool deoptimize_on_minus_zero() const { 1141 bool deoptimize_on_minus_zero() const {
1141 return CheckFlag(kBailoutOnMinusZero); 1142 return CheckFlag(kBailoutOnMinusZero);
1142 } 1143 }
1143 virtual Representation RequiredInputRepresentation(int index) { 1144 virtual Representation RequiredInputRepresentation(int index) {
(...skipping 3378 matching lines...) Expand 10 before | Expand all | Expand 10 after
4522 4523
4523 DECLARE_CONCRETE_INSTRUCTION(In) 4524 DECLARE_CONCRETE_INSTRUCTION(In)
4524 }; 4525 };
4525 4526
4526 #undef DECLARE_INSTRUCTION 4527 #undef DECLARE_INSTRUCTION
4527 #undef DECLARE_CONCRETE_INSTRUCTION 4528 #undef DECLARE_CONCRETE_INSTRUCTION
4528 4529
4529 } } // namespace v8::internal 4530 } } // namespace v8::internal
4530 4531
4531 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 4532 #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