| Index: src/x64/code-stubs-x64.cc
|
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
|
| index b8f9759a8450e87266a0d164351daef0629db7e3..31ef347d1a883e9b8e0a45c2e37096fb45c2902b 100644
|
| --- a/src/x64/code-stubs-x64.cc
|
| +++ b/src/x64/code-stubs-x64.cc
|
| @@ -1449,8 +1449,8 @@ void RegExpExecStub::Generate(MacroAssembler* masm) {
|
| // (5b) Is subject external? If yes, go to (8).
|
| __ testb(rbx, Immediate(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)
|
|
|
| // (6) One byte sequential. Load regexp code for one byte.
|
| @@ -3423,7 +3423,7 @@ void SubStringStub::Generate(MacroAssembler* masm) {
|
|
|
| // Handle external string.
|
| // Rule out short external strings.
|
| - STATIC_CHECK(kShortExternalStringTag != 0);
|
| + STATIC_ASSERT(kShortExternalStringTag != 0);
|
| __ testb(rbx, Immediate(kShortExternalStringMask));
|
| __ j(not_zero, &runtime);
|
| __ movp(rdi, FieldOperand(rdi, ExternalString::kResourceDataOffset));
|
|
|