Chromium Code Reviews

Side by Side Diff: src/compiler/opcodes.h

Issue 1433353006: [machine-operator-reducer] fix float truncation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: arm64: do not merge 64bit shr/sar with 32bit op Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_OPCODES_H_ 5 #ifndef V8_COMPILER_OPCODES_H_
6 #define V8_COMPILER_OPCODES_H_ 6 #define V8_COMPILER_OPCODES_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 // Opcodes for control operators. 10 // Opcodes for control operators.
(...skipping 361 matching lines...)
372 static bool IsIfProjectionOpcode(Value value) { 372 static bool IsIfProjectionOpcode(Value value) {
373 return kIfTrue <= value && value <= kIfDefault; 373 return kIfTrue <= value && value <= kIfDefault;
374 } 374 }
375 375
376 // Returns true if opcode for comparison operator. 376 // Returns true if opcode for comparison operator.
377 static bool IsComparisonOpcode(Value value) { 377 static bool IsComparisonOpcode(Value value) {
378 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) || 378 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) ||
379 (kNumberEqual <= value && value <= kStringLessThanOrEqual) || 379 (kNumberEqual <= value && value <= kStringLessThanOrEqual) ||
380 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual); 380 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual);
381 } 381 }
382
383 static bool Is64(Value value);
382 }; 384 };
383 385
384 std::ostream& operator<<(std::ostream&, IrOpcode::Value); 386 std::ostream& operator<<(std::ostream&, IrOpcode::Value);
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_OPCODES_H_ 392 #endif // V8_COMPILER_OPCODES_H_
OLDNEW

Powered by Google App Engine