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

Unified Diff: runtime/vm/parser.h

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/parser.h
===================================================================
--- runtime/vm/parser.h (revision 11663)
+++ runtime/vm/parser.h (working copy)
@@ -68,6 +68,10 @@
saved_context_var_ = saved_context_var;
}
+ // Returns NULL if this function does not save the arguments descriptor on
+ // entry.
+ LocalVariable* GetSavedArgumentsDescriptorVar() const;
+
LocalVariable* expression_temp_var() const {
ASSERT(has_expression_temp_var());
return expression_temp_var_;
@@ -459,6 +463,7 @@
bool is_const,
const AbstractTypeArguments& type_arguments);
AstNode* ParseNewOperator();
+ AstNode* ParseArgumentDefinitionTest();
// An implicit argument, if non-null, is prepended to the returned list.
ArgumentListNode* ParseActualParameters(ArgumentListNode* implicit_arguments,
@@ -476,6 +481,10 @@
bool consume_cascades);
LocalVariable* LookupLocalScope(const String& ident);
+ bool IsFormalParameter(const String& ident,
+ Function* owner_function,
+ LocalScope** owner_scope,
+ intptr_t* local_index);
void CheckInstanceFieldAccess(intptr_t field_pos, const String& field_name);
RawClass* TypeParametersScopeClass() const;
const Type* ReceiverType(intptr_t type_pos) const;

Powered by Google App Engine
This is Rietveld 408576698