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

Unified Diff: src/compiler/common-operator.cc

Issue 1455913003: [turbofan] Fix CFI failures with Operator1 class. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Better solution. Created 5 years, 1 month 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/js-operator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator.cc
diff --git a/src/compiler/common-operator.cc b/src/compiler/common-operator.cc
index 51f93da3b4d30d16913fa72a7447f82e78a10cbc..4f53f65c86638e1d7b132538a055c19308d972c3 100644
--- a/src/compiler/common-operator.cc
+++ b/src/compiler/common-operator.cc
@@ -573,22 +573,20 @@ const Operator* CommonOperatorBuilder::Int64Constant(int64_t value) {
const Operator* CommonOperatorBuilder::Float32Constant(volatile float value) {
- return new (zone())
- Operator1<float, base::bit_equal_to<float>, base::bit_hash<float>>( // --
- IrOpcode::kFloat32Constant, Operator::kPure, // opcode
- "Float32Constant", // name
- 0, 0, 0, 1, 0, 0, // counts
- value); // parameter
+ return new (zone()) Operator1<float>( // --
+ IrOpcode::kFloat32Constant, Operator::kPure, // opcode
+ "Float32Constant", // name
+ 0, 0, 0, 1, 0, 0, // counts
+ value); // parameter
}
const Operator* CommonOperatorBuilder::Float64Constant(volatile double value) {
- return new (zone()) Operator1<double, base::bit_equal_to<double>,
- base::bit_hash<double>>( // --
- IrOpcode::kFloat64Constant, Operator::kPure, // opcode
- "Float64Constant", // name
- 0, 0, 0, 1, 0, 0, // counts
- value); // parameter
+ return new (zone()) Operator1<double>( // --
+ IrOpcode::kFloat64Constant, Operator::kPure, // opcode
+ "Float64Constant", // name
+ 0, 0, 0, 1, 0, 0, // counts
+ value); // parameter
}
@@ -603,24 +601,21 @@ const Operator* CommonOperatorBuilder::ExternalConstant(
const Operator* CommonOperatorBuilder::NumberConstant(volatile double value) {
- return new (zone()) Operator1<double, base::bit_equal_to<double>,
- base::bit_hash<double>>( // --
- IrOpcode::kNumberConstant, Operator::kPure, // opcode
- "NumberConstant", // name
- 0, 0, 0, 1, 0, 0, // counts
- value); // parameter
+ return new (zone()) Operator1<double>( // --
+ IrOpcode::kNumberConstant, Operator::kPure, // opcode
+ "NumberConstant", // name
+ 0, 0, 0, 1, 0, 0, // counts
+ value); // parameter
}
const Operator* CommonOperatorBuilder::HeapConstant(
const Handle<HeapObject>& value) {
- return new (zone())
- Operator1<Handle<HeapObject>, Handle<HeapObject>::equal_to,
- Handle<HeapObject>::hash>( // --
- IrOpcode::kHeapConstant, Operator::kPure, // opcode
- "HeapConstant", // name
- 0, 0, 0, 1, 0, 0, // counts
- value); // parameter
+ return new (zone()) Operator1<Handle<HeapObject>>( // --
+ IrOpcode::kHeapConstant, Operator::kPure, // opcode
+ "HeapConstant", // name
+ 0, 0, 0, 1, 0, 0, // counts
+ value); // parameter
}
« no previous file with comments | « no previous file | src/compiler/js-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698