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

Unified Diff: runtime/vm/symbols.cc

Issue 10915022: Implement argument definition test in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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: runtime/vm/symbols.cc
===================================================================
--- runtime/vm/symbols.cc (revision 11663)
+++ runtime/vm/symbols.cc (working copy)
@@ -28,6 +28,12 @@
};
+const char* Symbols::Name(intptr_t symbol) {
hausner 2012/08/31 00:34:55 Why is this needed (or better) than getting the ra
regis 2012/08/31 01:36:18 See the other comment. When we just need a char*,
+ ASSERT((symbol > kIllegal) && (symbol < kMaxId));
+ return names[symbol];
+}
+
+
void Symbols::InitOnce(Isolate* isolate) {
// Should only be run by the vm isolate.
ASSERT(isolate == Dart::vm_isolate());

Powered by Google App Engine
This is Rietveld 408576698