Index: src/compiler/code-stub-assembler.cc |
diff --git a/src/compiler/code-stub-assembler.cc b/src/compiler/code-stub-assembler.cc |
index 772a1bf0c67a2ca19442428abca3743a88566ae1..425f6bee7d5969fedb77a0ea8f47c38b1b7b4a80 100644 |
--- a/src/compiler/code-stub-assembler.cc |
+++ b/src/compiler/code-stub-assembler.cc |
@@ -1276,6 +1276,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); |