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

Unified Diff: runtime/vm/dart_entry.h

Issue 11441021: Pass handles not raw objects into methods. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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/dart_entry.h
===================================================================
--- runtime/vm/dart_entry.h (revision 15741)
+++ runtime/vm/dart_entry.h (working copy)
@@ -22,6 +22,7 @@
class RawArray;
class RawInstance;
class RawObject;
+class RawString;
class String;
// An arguments descriptor array consists of the total argument count; the
@@ -30,13 +31,13 @@
// simplify iterating in generated code.
class ArgumentsDescriptor : public ValueObject {
public:
- explicit ArgumentsDescriptor(RawObject* array);
+ explicit ArgumentsDescriptor(const Array& array);
// Accessors.
intptr_t Count() const;
intptr_t PositionalCount() const;
intptr_t NamedCount() const { return Count() - PositionalCount(); }
- RawObject* NameAt(intptr_t index) const;
+ RawString* NameAt(intptr_t index) const;
// Generated code support.
static intptr_t count_offset();
@@ -73,6 +74,8 @@
}
const Array& array_;
+
+ DISALLOW_COPY_AND_ASSIGN(ArgumentsDescriptor);
};
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/dart_entry.cc » ('j') | runtime/vm/dart_entry.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698