OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/compiler/operator.h" | 10 #include "src/compiler/operator.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 kNumberOrOddball, // Inputs were Number or Oddball, output was Number. | 176 kNumberOrOddball, // Inputs were Number or Oddball, output was Number. |
177 }; | 177 }; |
178 | 178 |
179 size_t hash_value(NumberOperationHint); | 179 size_t hash_value(NumberOperationHint); |
180 | 180 |
181 std::ostream& operator<<(std::ostream&, NumberOperationHint); | 181 std::ostream& operator<<(std::ostream&, NumberOperationHint); |
182 | 182 |
183 NumberOperationHint NumberOperationHintOf(const Operator* op) | 183 NumberOperationHint NumberOperationHintOf(const Operator* op) |
184 WARN_UNUSED_RESULT; | 184 WARN_UNUSED_RESULT; |
185 | 185 |
| 186 PretenureFlag PretenureFlagOf(const Operator* op) WARN_UNUSED_RESULT; |
| 187 |
186 // Interface for building simplified operators, which represent the | 188 // Interface for building simplified operators, which represent the |
187 // medium-level operations of V8, including adding numbers, allocating objects, | 189 // medium-level operations of V8, including adding numbers, allocating objects, |
188 // indexing into objects and arrays, etc. | 190 // indexing into objects and arrays, etc. |
189 // All operators are typed but many are representation independent. | 191 // All operators are typed but many are representation independent. |
190 | 192 |
191 // Number values from JS can be in one of these representations: | 193 // Number values from JS can be in one of these representations: |
192 // - Tagged: word-sized integer that is either | 194 // - Tagged: word-sized integer that is either |
193 // - a signed small integer (31 or 32 bits plus a tag) | 195 // - a signed small integer (31 or 32 bits plus a tag) |
194 // - a tagged pointer to a HeapNumber object that has a float64 field | 196 // - a tagged pointer to a HeapNumber object that has a float64 field |
195 // - Int32: an untagged signed 32-bit integer | 197 // - Int32: an untagged signed 32-bit integer |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 Zone* const zone_; | 383 Zone* const zone_; |
382 | 384 |
383 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); | 385 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); |
384 }; | 386 }; |
385 | 387 |
386 } // namespace compiler | 388 } // namespace compiler |
387 } // namespace internal | 389 } // namespace internal |
388 } // namespace v8 | 390 } // namespace v8 |
389 | 391 |
390 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 392 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
OLD | NEW |