Index: src/code-stub-assembler.h |
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h |
index 39c0fe690c8a9e27a031d5f831099189edb4c0d0..6558a91411bf4c2708390cfb056676daaea877b5 100644 |
--- a/src/code-stub-assembler.h |
+++ b/src/code-stub-assembler.h |
@@ -486,8 +486,14 @@ class CodeStubAssembler : public compiler::CodeAssembler { |
// Convert any object to a Number. |
compiler::Node* ToNumber(compiler::Node* context, compiler::Node* input); |
+ enum ToIntegerTruncationMode { |
+ kNoTruncation, |
+ kTruncateMinusZero, |
+ }; |
+ |
// Convert any object to an Integer. |
- compiler::Node* ToInteger(compiler::Node* context, compiler::Node* input); |
+ compiler::Node* ToInteger(compiler::Node* context, compiler::Node* input, |
+ ToIntegerTruncationMode mode = kNoTruncation); |
// Returns a node that contains a decoded (unsigned!) value of a bit |
// field |T| in |word32|. Returns result as an uint32 node. |