| Index: src/ia32/code-stubs-ia32.cc
|
| diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
|
| index 5695719b583d91ada5d5377c65f874b0e821c4e6..9c12520e7b743e95d366aaa95fe1c3d6fef72c7e 100644
|
| --- a/src/ia32/code-stubs-ia32.cc
|
| +++ b/src/ia32/code-stubs-ia32.cc
|
| @@ -1566,8 +1566,8 @@ void RegExpExecStub::Generate(MacroAssembler* masm) {
|
| // (5b) Is subject external? If yes, go to (8).
|
| __ test_b(ebx, kStringRepresentationMask);
|
| // The underlying external string is never a short external string.
|
| - STATIC_CHECK(ExternalString::kMaxShortLength < ConsString::kMinLength);
|
| - STATIC_CHECK(ExternalString::kMaxShortLength < SlicedString::kMinLength);
|
| + STATIC_ASSERT(ExternalString::kMaxShortLength < ConsString::kMinLength);
|
| + STATIC_ASSERT(ExternalString::kMaxShortLength < SlicedString::kMinLength);
|
| __ j(not_zero, &external_string); // Go to (8).
|
|
|
| // eax: sequential subject string (or look-alike, external string)
|
| @@ -3465,7 +3465,7 @@ void SubStringStub::Generate(MacroAssembler* masm) {
|
|
|
| // Handle external string.
|
| // Rule out short external strings.
|
| - STATIC_CHECK(kShortExternalStringTag != 0);
|
| + STATIC_ASSERT(kShortExternalStringTag != 0);
|
| __ test_b(ebx, kShortExternalStringMask);
|
| __ j(not_zero, &runtime);
|
| __ mov(edi, FieldOperand(edi, ExternalString::kResourceDataOffset));
|
|
|