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

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

Issue 893073006: Add map-based read barrier to WeakCell Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix merge Created 5 years, 10 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/types.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-compiler.cc
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc
index e47b1d61bd9228b86c45098d6867b8a8f9de1e3c..002ed9ca6e89ab09d6f23de58457f65c338e5351 100644
--- a/test/cctest/test-compiler.cc
+++ b/test/cctest/test-compiler.cc
@@ -316,7 +316,7 @@ TEST(FeedbackVectorPreservedAcrossRecompiles) {
FeedbackVectorICSlot slot_for_a(0);
Object* object = feedback_vector->Get(slot_for_a);
CHECK(object->IsWeakCell() &&
- WeakCell::cast(object)->value()->IsJSFunction());
+ WeakCell::cast(object)->ValueNoReadBarrier()->IsJSFunction());
CompileRun("%OptimizeFunctionOnNextCall(f); f(fun1);");
@@ -326,7 +326,7 @@ TEST(FeedbackVectorPreservedAcrossRecompiles) {
CHECK(f->shared()->has_deoptimization_support());
object = f->shared()->feedback_vector()->Get(slot_for_a);
CHECK(object->IsWeakCell() &&
- WeakCell::cast(object)->value()->IsJSFunction());
+ WeakCell::cast(object)->ValueNoReadBarrier()->IsJSFunction());
}
« no previous file with comments | « src/types.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698