| Index: test/cctest/test-api-interceptors.cc
|
| diff --git a/test/cctest/test-api-interceptors.cc b/test/cctest/test-api-interceptors.cc
|
| index 6aebba67bc46a14b154e8d660ef2903f21a90b80..d0f27be3c39b319f1fef07aec8f9373b9f5d9dcb 100644
|
| --- a/test/cctest/test-api-interceptors.cc
|
| +++ b/test/cctest/test-api-interceptors.cc
|
| @@ -13,6 +13,7 @@
|
| #include "src/compilation-cache.h"
|
| #include "src/execution.h"
|
| #include "src/objects.h"
|
| +#include "src/runtime/runtime.h"
|
| #include "src/unicode-inl.h"
|
| #include "src/utils.h"
|
|
|
| @@ -4094,6 +4095,7 @@ THREADED_TEST(NamedPropertyHandlerGetterAttributes) {
|
|
|
| THREADED_TEST(Regress256330) {
|
| i::FLAG_allow_natives_syntax = true;
|
| + i::FLAG_crankshaft = true;
|
| LocalContext context;
|
| v8::HandleScope scope(context->GetIsolate());
|
| Local<FunctionTemplate> templ = FunctionTemplate::New(context->GetIsolate());
|
| @@ -4108,7 +4110,9 @@ THREADED_TEST(Regress256330) {
|
| "f(o); f(o); f(o);"
|
| "%OptimizeFunctionOnNextCall(f);"
|
| "f(o);");
|
| - ExpectBoolean("%GetOptimizationStatus(f) != 2", true);
|
| + int status = v8_run_int32value(v8_compile("%GetOptimizationStatus(f)"));
|
| + int mask = static_cast<int>(i::OptimizationStatus::kIsOptmimizedFunctionMask);
|
| + CHECK_EQ(mask, status & mask);
|
| }
|
|
|
|
|
|
|