summaryrefslogtreecommitdiff
path: root/deps/v8/test/unittests/regexp/regexp-unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/unittests/regexp/regexp-unittest.cc')
-rw-r--r--deps/v8/test/unittests/regexp/regexp-unittest.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/v8/test/unittests/regexp/regexp-unittest.cc b/deps/v8/test/unittests/regexp/regexp-unittest.cc
index 065eea336f..2b84c701ee 100644
--- a/deps/v8/test/unittests/regexp/regexp-unittest.cc
+++ b/deps/v8/test/unittests/regexp/regexp-unittest.cc
@@ -1653,6 +1653,7 @@ void MockUseCounterCallback(v8::Isolate* isolate,
v8::Isolate::UseCounterFeature feature) {
++global_use_counts[feature];
}
+
} // namespace
using RegExpTestWithContext = TestWithContext;
@@ -2314,10 +2315,10 @@ TEST_F(RegExpTestWithContext, UnicodePropertyEscapeCodeSize) {
if (maybe_bytecode.IsByteArray()) {
// On x64, excessive inlining produced >250KB.
CHECK_LT(ByteArray::cast(maybe_bytecode).Size(), kMaxSize);
- } else if (maybe_code.IsCodeT()) {
+ } else if (maybe_code.IsCode()) {
// On x64, excessive inlining produced >360KB.
- CHECK_LT(FromCodeT(CodeT::cast(maybe_code)).Size(), kMaxSize);
- CHECK_EQ(FromCodeT(CodeT::cast(maybe_code)).kind(), CodeKind::REGEXP);
+ CHECK_LT(Code::cast(maybe_code).Size(), kMaxSize);
+ CHECK_EQ(Code::cast(maybe_code).kind(), CodeKind::REGEXP);
} else {
UNREACHABLE();
}