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

Unified Diff: runtime/vm/object.cc

Issue 10821076: - Allow parsing of external methods. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/object.h ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 10018)
+++ runtime/vm/object.cc (working copy)
@@ -3752,6 +3752,11 @@
}
+void Function::set_is_external(bool value) const {
+ raw_ptr()->is_external_ = value;
+}
+
+
void Function::set_token_pos(intptr_t pos) const {
ASSERT(pos >= 0);
raw_ptr()->token_pos_ = pos;
@@ -4106,6 +4111,7 @@
RawFunction::Kind kind,
bool is_static,
bool is_const,
+ bool is_external,
intptr_t token_pos) {
ASSERT(name.IsOneByteString());
const Function& result = Function::Handle(Function::New());
@@ -4115,6 +4121,7 @@
result.set_kind(kind);
result.set_is_static(is_static);
result.set_is_const(is_const);
+ result.set_is_external(is_external);
result.set_token_pos(token_pos);
result.set_end_token_pos(token_pos);
result.set_num_fixed_parameters(0);
@@ -4139,6 +4146,7 @@
RawFunction::kClosureFunction,
/* is_static = */ parent.is_static(),
/* is_const = */ false,
+ /* is_external = */ false,
token_pos));
result.set_parent_function(parent);
result.set_owner(parent_class);
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698