Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Unified Diff: test/cctest/test-api-interceptors.cc

Issue 2655223003: Revert of [tests] Make assertOptimized()/assertUnoptimized() great again. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-test.cc ('k') | test/debugger/debug/regress/regress-prepare-break-while-recompile.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api-interceptors.cc
diff --git a/test/cctest/test-api-interceptors.cc b/test/cctest/test-api-interceptors.cc
index 96c2c454a9e23d2bff7966e5bf5762c460f9caa4..6aebba67bc46a14b154e8d660ef2903f21a90b80 100644
--- a/test/cctest/test-api-interceptors.cc
+++ b/test/cctest/test-api-interceptors.cc
@@ -13,7 +13,6 @@
#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,7 +4093,6 @@
THREADED_TEST(Regress256330) {
- if (!i::FLAG_crankshaft) return;
i::FLAG_allow_natives_syntax = true;
LocalContext context;
v8::HandleScope scope(context->GetIsolate());
@@ -4110,10 +4108,7 @@
"f(o); f(o); f(o);"
"%OptimizeFunctionOnNextCall(f);"
"f(o);");
- int status = v8_run_int32value(v8_compile("%GetOptimizationStatus(f)"));
- int mask = static_cast<int>(i::OptimizationStatus::kIsFunction) |
- static_cast<int>(i::OptimizationStatus::kOptimized);
- CHECK_EQ(mask, status & mask);
+ ExpectBoolean("%GetOptimizationStatus(f) != 2", true);
}
« no previous file with comments | « src/runtime/runtime-test.cc ('k') | test/debugger/debug/regress/regress-prepare-break-while-recompile.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698