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

Unified Diff: src/transitions-inl.h

Issue 1704353002: [runtime] Force internalize names used before lookup in in DescriptorArray and TransitionArray (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/transitions.cc ('k') | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/transitions-inl.h
diff --git a/src/transitions-inl.h b/src/transitions-inl.h
index 96d9495bf404cecb30760e01551bbd22a1fd7277..9424497e199ac2941e7eac15ff362701ed55933b 100644
--- a/src/transitions-inl.h
+++ b/src/transitions-inl.h
@@ -100,7 +100,9 @@ void TransitionArray::SetTarget(int transition_number, Map* value) {
int TransitionArray::SearchName(Name* name, int* out_insertion_index) {
- return internal::Search<ALL_ENTRIES>(this, name, 0, out_insertion_index);
+ DCHECK(name->IsUniqueName());
+ return internal::Search<ALL_ENTRIES>(this, name, number_of_entries(),
+ out_insertion_index);
}
« no previous file with comments | « src/transitions.cc ('k') | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698