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

Unified Diff: test/cctest/heap/test-heap.cc

Issue 1523753002: [es6] Correct Function.prototype.apply, Reflect.construct and Reflect.apply. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Mark mjsunit/apply as TIMEOUT (for tsan). Created 5 years 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/x64/builtins-x64.cc ('k') | test/mjsunit/apply.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/heap/test-heap.cc
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc
index ada4869feaf8ef21c88d9c4ee5ac2adcd5fc41c7..a4cbed3d95007336897cff8e4af2293995fa9ff2 100644
--- a/test/cctest/heap/test-heap.cc
+++ b/test/cctest/heap/test-heap.cc
@@ -3678,39 +3678,6 @@ static void CheckVectorICCleared(Handle<JSFunction> f, int slot_index) {
}
-TEST(ICInBuiltInIsClearedAppropriately) {
- if (i::FLAG_always_opt) return;
- CcTest::InitializeVM();
- v8::HandleScope scope(CcTest::isolate());
-
- Handle<JSFunction> apply;
- {
- LocalContext env;
- v8::Local<v8::Value> res = CompileRun("Function.apply");
- i::Handle<JSReceiver> maybe_apply =
- v8::Utils::OpenHandle(*v8::Local<v8::Object>::Cast(res));
- apply = i::Handle<JSFunction>::cast(maybe_apply);
- i::Handle<TypeFeedbackVector> vector(apply->shared()->feedback_vector());
- FeedbackVectorHelper feedback_helper(vector);
- CHECK_EQ(1, feedback_helper.slot_count());
- CheckVectorIC(apply, 0, UNINITIALIZED);
- CompileRun(
- "function b(a1, a2, a3) { return a1 + a2 + a3; }"
- "function fun(bar) { bar.apply({}, [1, 2, 3]); };"
- "fun(b); fun(b)");
- CheckVectorIC(apply, 0, MONOMORPHIC);
- }
-
- // Fire context dispose notification.
- CcTest::isolate()->ContextDisposedNotification();
- SimulateIncrementalMarking(CcTest::heap());
- CcTest::heap()->CollectAllGarbage();
-
- // The IC in apply has been cleared, ready to learn again.
- CheckVectorIC(apply, 0, PREMONOMORPHIC);
-}
-
-
TEST(IncrementalMarkingPreservesMonomorphicConstructor) {
if (i::FLAG_always_opt) return;
CcTest::InitializeVM();
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | test/mjsunit/apply.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698