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

Unified Diff: runtime/vm/object_test.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.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_test.cc
===================================================================
--- runtime/vm/object_test.cc (revision 10018)
+++ runtime/vm/object_test.cc (working copy)
@@ -30,11 +30,11 @@
String& function_name = String::Handle();
function_name = Symbols::New("foo");
function = Function::New(
- function_name, RawFunction::kRegularFunction, false, false, 0);
+ function_name, RawFunction::kRegularFunction, false, false, false, 0);
functions.SetAt(0, function);
function_name = Symbols::New("bar");
function = Function::New(
- function_name, RawFunction::kRegularFunction, false, false, 0);
+ function_name, RawFunction::kRegularFunction, false, false, false, 0);
const int kNumFixedParameters = 2;
const int kNumOptionalParameters = 3;
@@ -44,20 +44,20 @@
function_name = Symbols::New("baz");
function = Function::New(
- function_name, RawFunction::kRegularFunction, false, false, 0);
+ function_name, RawFunction::kRegularFunction, false, false, false, 0);
functions.SetAt(2, function);
function_name = Symbols::New("Foo");
function = Function::New(
- function_name, RawFunction::kRegularFunction, true, false, 0);
+ function_name, RawFunction::kRegularFunction, true, false, false, 0);
functions.SetAt(3, function);
function_name = Symbols::New("Bar");
function = Function::New(
- function_name, RawFunction::kRegularFunction, true, false, 0);
+ function_name, RawFunction::kRegularFunction, true, false, false, 0);
functions.SetAt(4, function);
function_name = Symbols::New("BaZ");
function = Function::New(
- function_name, RawFunction::kRegularFunction, true, false, 0);
+ function_name, RawFunction::kRegularFunction, true, false, false, 0);
functions.SetAt(5, function);
// Setup the functions in the class.
@@ -2326,7 +2326,7 @@
Function& parent = Function::Handle();
const String& parent_name = String::Handle(Symbols::New("foo_papa"));
parent = Function::New(parent_name, RawFunction::kRegularFunction,
- false, false, 0);
+ false, false, false, 0);
functions.SetAt(0, parent);
cls.SetFunctions(functions);
@@ -2396,7 +2396,7 @@
const String& function_name = String::ZoneHandle(Symbols::New(name));
Function& function = Function::ZoneHandle(
Function::New(function_name, RawFunction::kRegularFunction,
- true, false, 0));
+ true, false, false, 0));
return &function;
}
@@ -2580,10 +2580,12 @@
const String& function_name = String::Handle(Symbols::New(name));
const bool is_static = false;
const bool is_const = false;
+ const bool is_external = false;
return Function::New(function_name,
RawFunction::kRegularFunction,
is_static,
is_const,
+ is_external,
0);
}
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698