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

Unified Diff: src/code-stub-assembler.cc

Issue 2821213004: [keyed-store-generic] Update protectors if needed (Closed)
Patch Set: --no-stress-opt Created 3 years, 8 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/code-stub-assembler.h ('k') | src/ic/keyed-store-generic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.cc
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc
index c4b26ef697ae52d5fcfac2399b44edb7fc65e685..6e1bde011b7525f40e04694850e26cc0c9421a39 100644
--- a/src/code-stub-assembler.cc
+++ b/src/code-stub-assembler.cc
@@ -5796,6 +5796,21 @@ void CodeStubAssembler::UpdateFeedback(Node* feedback, Node* feedback_vector,
SKIP_WRITE_BARRIER);
}
+void CodeStubAssembler::CheckForAssociatedProtector(Node* name,
+ Label* if_protector) {
+ // This list must be kept in sync with LookupIterator::UpdateProtector!
+ // TODO(jkummerow): Would it be faster to have a bit in Symbol::flags()?
+ GotoIf(WordEqual(name, LoadRoot(Heap::kconstructor_stringRootIndex)),
+ if_protector);
+ GotoIf(WordEqual(name, LoadRoot(Heap::kiterator_symbolRootIndex)),
+ if_protector);
+ GotoIf(WordEqual(name, LoadRoot(Heap::kspecies_symbolRootIndex)),
+ if_protector);
+ GotoIf(WordEqual(name, LoadRoot(Heap::kis_concat_spreadable_symbolRootIndex)),
+ if_protector);
+ // Fall through if no case matched.
+}
+
Node* CodeStubAssembler::LoadReceiverMap(Node* receiver) {
return Select(TaggedIsSmi(receiver),
[=] { return LoadRoot(Heap::kHeapNumberMapRootIndex); },
« no previous file with comments | « src/code-stub-assembler.h ('k') | src/ic/keyed-store-generic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698