Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index c4aedd4b684524d1a9f429c4454850d729168cfd..078c6df2042e978be512d0c70c219ba840fa72f8 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -3392,8 +3392,8 @@ void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) { |
__ pop(index); |
if (FLAG_debug_code) { |
- __ ThrowIf(NegateCondition(__ CheckSmi(value)), kNonSmiValue); |
- __ ThrowIf(NegateCondition(__ CheckSmi(index)), kNonSmiValue); |
+ __ Check(__ CheckSmi(value), kNonSmiValue); |
+ __ Check(__ CheckSmi(index), kNonSmiValue); |
} |
__ SmiToInteger32(value, value); |
@@ -3425,8 +3425,8 @@ void FullCodeGenerator::EmitTwoByteSeqStringSetChar(CallRuntime* expr) { |
__ pop(index); |
if (FLAG_debug_code) { |
- __ ThrowIf(NegateCondition(__ CheckSmi(value)), kNonSmiValue); |
- __ ThrowIf(NegateCondition(__ CheckSmi(index)), kNonSmiValue); |
+ __ Check(__ CheckSmi(value), kNonSmiValue); |
+ __ Check(__ CheckSmi(index), kNonSmiValue); |
} |
__ SmiToInteger32(value, value); |