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

Unified Diff: src/compiler/machine-operator-reducer.h

Issue 470633006: [turbofan] Add support for change/truncate to MachineOperatorReducer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/machine-operator-reducer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/machine-operator-reducer.h
diff --git a/src/compiler/machine-operator-reducer.h b/src/compiler/machine-operator-reducer.h
index 46d2931e9949a9b674c1e8baca5382b8f6253e9f..3ed3100d785a23ada2416a1466b2452bd6a6740c 100644
--- a/src/compiler/machine-operator-reducer.h
+++ b/src/compiler/machine-operator-reducer.h
@@ -32,17 +32,19 @@ class MachineOperatorReducer : public Reducer {
CommonOperatorBuilder common_;
MachineOperatorBuilder machine_;
- Node* Int32Constant(int32_t value);
Node* Float64Constant(volatile double value);
+ Node* Int32Constant(int32_t value);
+ Node* Int64Constant(int64_t value);
Reduction ReplaceBool(bool value) { return ReplaceInt32(value ? 1 : 0); }
-
+ Reduction ReplaceFloat64(volatile double value) {
+ return Replace(Float64Constant(value));
+ }
Reduction ReplaceInt32(int32_t value) {
return Replace(Int32Constant(value));
}
-
- Reduction ReplaceFloat64(volatile double value) {
- return Replace(Float64Constant(value));
+ Reduction ReplaceInt64(int64_t value) {
+ return Replace(Int64Constant(value));
}
};
}
« no previous file with comments | « no previous file | src/compiler/machine-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698