Index: src/compiler/code-assembler.cc |
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc |
index 4dd7e790facfa61b10a187f9add2ec68b8c3c31c..8f8ef1d117883aeb77e52ce1282087a0920b965b 100644 |
--- a/src/compiler/code-assembler.cc |
+++ b/src/compiler/code-assembler.cc |
@@ -234,6 +234,13 @@ Node* CodeAssembler::ChangeInt32ToIntPtr(Node* value) { |
return value; |
} |
+Node* CodeAssembler::RoundIntPtrToFloat64(Node* value) { |
+ if (raw_assembler_->machine()->Is64()) { |
+ return raw_assembler_->RoundInt64ToFloat64(value); |
+ } |
+ return raw_assembler_->ChangeInt32ToFloat64(value); |
+} |
+ |
#define DEFINE_CODE_ASSEMBLER_UNARY_OP(name) \ |
Node* CodeAssembler::name(Node* a) { return raw_assembler_->name(a); } |
CODE_ASSEMBLER_UNARY_OP_LIST(DEFINE_CODE_ASSEMBLER_UNARY_OP) |