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

Unified Diff: runtime/vm/ic_data.cc

Issue 8351019: Code patching support and tests for new inline caches. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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
« no previous file with comments | « runtime/vm/code_patcher_ia32_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ic_data.cc
===================================================================
--- runtime/vm/ic_data.cc (revision 655)
+++ runtime/vm/ic_data.cc (working copy)
@@ -9,6 +9,9 @@
// ICData is a ValueObject, therefore 'data' need not be a ZoneObject.
ICData::ICData(const Array& data) : data_(&data) {
+ // Check consistency.
+ ASSERT(!String::Handle(FunctionName()).IsNull());
+ ASSERT(NumberOfArgumentsChecked() > 0);
}
« no previous file with comments | « runtime/vm/code_patcher_ia32_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698