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

Unified Diff: src/ic/ia32/ic-compiler-ia32.cc

Issue 893073006: Add map-based read barrier to WeakCell Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
Index: src/ic/ia32/ic-compiler-ia32.cc
diff --git a/src/ic/ia32/ic-compiler-ia32.cc b/src/ic/ia32/ic-compiler-ia32.cc
index f43b641134d873e5af26eafedcaee4d9a93170ce..a553c53aaba1be20dcf096d9765dd1ffede9af5a 100644
--- a/src/ic/ia32/ic-compiler-ia32.cc
+++ b/src/ic/ia32/ic-compiler-ia32.cc
@@ -115,7 +115,7 @@ Handle<Code> PropertyICCompiler::CompileKeyedStorePolymorphic(
Label next_map;
__ j(not_equal, &next_map, Label::kNear);
Handle<WeakCell> cell = Map::WeakCellForMap(transitioned_maps->at(i));
Erik Corry Chromium.org 2015/02/03 17:42:53 I think perhaps here we should trigger the read ba
ulan 2015/02/04 09:35:04 Do you mean read barrier on receiver_map? I think
Erik Corry 2015/02/04 10:49:42 I agree we don't need it for correctness. The que
ulan 2015/02/04 11:08:10 The transitioned_map[i] has a back pointer to the
- __ LoadWeakValue(transition_map(), cell, &miss);
+ __ LoadWeakValue(transition_map(), cell, scratch2(), &miss);
__ jmp(handler_stubs->at(i), RelocInfo::CODE_TARGET);
__ bind(&next_map);
}

Powered by Google App Engine
This is Rietveld 408576698