Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 08686e37c9781d1e97c359b25fdd8eda5c353892..ed11ce9c5916349b300eb687b0f906db61900b06 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -3411,9 +3411,9 @@ void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) { |
if (FLAG_debug_code) { |
__ test(value, Immediate(kSmiTagMask)); |
- __ ThrowIf(not_zero, kNonSmiValue); |
+ __ Check(zero, kNonSmiValue); |
__ test(index, Immediate(kSmiTagMask)); |
- __ ThrowIf(not_zero, kNonSmiValue); |
+ __ Check(zero, kNonSmiValue); |
} |
__ SmiUntag(value); |
@@ -3446,9 +3446,9 @@ void FullCodeGenerator::EmitTwoByteSeqStringSetChar(CallRuntime* expr) { |
if (FLAG_debug_code) { |
__ test(value, Immediate(kSmiTagMask)); |
- __ ThrowIf(not_zero, kNonSmiValue); |
+ __ Check(zero, kNonSmiValue); |
__ test(index, Immediate(kSmiTagMask)); |
- __ ThrowIf(not_zero, kNonSmiValue); |
+ __ Check(zero, kNonSmiValue); |
__ SmiUntag(index); |
static const uint32_t two_byte_seq_type = kSeqStringTag | kTwoByteStringTag; |
__ EmitSeqStringSetCharCheck(string, index, value, two_byte_seq_type); |