Index: src/compiler/code-stub-assembler.cc |
diff --git a/src/compiler/code-stub-assembler.cc b/src/compiler/code-stub-assembler.cc |
index 3f52d21b5532d90e34092c6a1e9ee8c3b4b87d9a..1da2fdd679186f5e237325e2094c90ee39f2f649 100644 |
--- a/src/compiler/code-stub-assembler.cc |
+++ b/src/compiler/code-stub-assembler.cc |
@@ -1311,6 +1311,11 @@ Node* CodeStubAssembler::StringFromCharCode(Node* code) { |
return var_result.value(); |
} |
+Node* CodeStubAssembler::TruncateFloat64ToInt32(Node* value) { |
+ return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript, |
+ value); |
+} |
+ |
void CodeStubAssembler::BranchIf(Node* condition, Label* if_true, |
Label* if_false) { |
Label if_condition_is_true(this), if_condition_is_false(this); |