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

Unified Diff: src/transitions-inl.h

Issue 35413006: Correct handling of arrays with callbacks in the prototype chain. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Test fixes Created 7 years, 2 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/transitions-inl.h
diff --git a/src/transitions-inl.h b/src/transitions-inl.h
index c4825fcf734a590dc6dbe114355fa3fc08fede2a..b9484417297412d7dddce7c6c389aec8c00c9a87 100644
--- a/src/transitions-inl.h
+++ b/src/transitions-inl.h
@@ -62,6 +62,11 @@ bool TransitionArray::HasElementsTransition() {
}
+bool TransitionArray::HasElementCallbacksTransition() {
+ return Search(GetHeap()->element_callbacks_symbol()) != kNotFound;
+}
+
+
Object* TransitionArray::back_pointer_storage() {
return get(kBackPointerStorageIndex);
}
« src/objects.cc ('K') | « src/transitions.h ('k') | test/mjsunit/allocation-site-info.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698