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

Side by Side Diff: src/compiler/simplified-operator.h

Issue 2357573002: [turbofan] Introduce PretenureFlagOf helper function. (Closed)
Patch Set: Now with all the code. Created 4 years, 3 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 | « src/compiler/memory-optimizer.cc ('k') | src/compiler/simplified-operator.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 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
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
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_
OLDNEW
« no previous file with comments | « src/compiler/memory-optimizer.cc ('k') | src/compiler/simplified-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698