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

Unified Diff: vm/object_test.cc

Issue 10808064: Rename some of the enum definitions inside classes to avoid conflict with the ObjectKind enum. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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 | « vm/object.cc ('k') | vm/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object_test.cc
===================================================================
--- vm/object_test.cc (revision 9791)
+++ vm/object_test.cc (working copy)
@@ -29,11 +29,11 @@
String& function_name = String::Handle();
function_name = String::NewSymbol("foo");
function = Function::New(
- function_name, RawFunction::kFunction, false, false, 0);
+ function_name, RawFunction::kRegularFunction, false, false, 0);
functions.SetAt(0, function);
function_name = String::NewSymbol("bar");
function = Function::New(
- function_name, RawFunction::kFunction, false, false, 0);
+ function_name, RawFunction::kRegularFunction, false, false, 0);
const int kNumFixedParameters = 2;
const int kNumOptionalParameters = 3;
@@ -43,20 +43,20 @@
function_name = String::NewSymbol("baz");
function = Function::New(
- function_name, RawFunction::kFunction, false, false, 0);
+ function_name, RawFunction::kRegularFunction, false, false, 0);
functions.SetAt(2, function);
function_name = String::NewSymbol("Foo");
function = Function::New(
- function_name, RawFunction::kFunction, true, false, 0);
+ function_name, RawFunction::kRegularFunction, true, false, 0);
functions.SetAt(3, function);
function_name = String::NewSymbol("Bar");
function = Function::New(
- function_name, RawFunction::kFunction, true, false, 0);
+ function_name, RawFunction::kRegularFunction, true, false, 0);
functions.SetAt(4, function);
function_name = String::NewSymbol("BaZ");
function = Function::New(
- function_name, RawFunction::kFunction, true, false, 0);
+ function_name, RawFunction::kRegularFunction, true, false, 0);
functions.SetAt(5, function);
// Setup the functions in the class.
@@ -2182,7 +2182,7 @@
const String& source = String::Handle(String::New(source_chars));
const Script& script = Script::Handle(Script::New(url,
source,
- RawScript::kSource));
+ RawScript::kSourceTag));
EXPECT(!script.IsNull());
EXPECT(script.IsScript());
String& str = String::Handle(script.url());
@@ -2323,7 +2323,8 @@
const Context& context = Context::Handle(Context::New(0));
Function& parent = Function::Handle();
const String& parent_name = String::Handle(String::NewSymbol("foo_papa"));
- parent = Function::New(parent_name, RawFunction::kFunction, false, false, 0);
+ parent = Function::New(parent_name, RawFunction::kRegularFunction,
+ false, false, 0);
functions.SetAt(0, parent);
cls.SetFunctions(functions);
@@ -2392,7 +2393,8 @@
static Function* CreateFunction(const char* name) {
const String& function_name = String::ZoneHandle(String::NewSymbol(name));
Function& function = Function::ZoneHandle(
- Function::New(function_name, RawFunction::kFunction, true, false, 0));
+ Function::New(function_name, RawFunction::kRegularFunction,
+ true, false, 0));
return &function;
}
@@ -2576,7 +2578,7 @@
const bool is_static = false;
const bool is_const = false;
return Function::New(function_name,
- RawFunction::kFunction,
+ RawFunction::kRegularFunction,
is_static,
is_const,
0);
« no previous file with comments | « vm/object.cc ('k') | vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698