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

Unified Diff: runtime/vm/unit_test.cc

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/token_position.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/unit_test.cc
diff --git a/runtime/vm/unit_test.cc b/runtime/vm/unit_test.cc
index 2861fabeef74f4ce5c2f7179b068a30310537a6c..05d8d3f6b09a940491cf60362e62a0eff7d3fda7 100644
--- a/runtime/vm/unit_test.cc
+++ b/runtime/vm/unit_test.cc
@@ -200,12 +200,15 @@ char* TestCase::BigintToHexValue(Dart_CObject* bigint) {
void AssemblerTest::Assemble() {
const String& function_name = String::ZoneHandle(Symbols::New(name_));
const Class& cls = Class::ZoneHandle(
- Class::New(function_name, Script::Handle(), 0));
+ Class::New(function_name,
+ Script::Handle(),
+ TokenPosition::kMinSource));
const Library& lib = Library::ZoneHandle(Library::New(function_name));
cls.set_library(lib);
Function& function = Function::ZoneHandle(
Function::New(function_name, RawFunction::kRegularFunction,
- true, false, false, false, false, cls, 0));
+ true, false, false, false, false, cls,
+ TokenPosition::kMinSource));
code_ = Code::FinalizeCode(function, assembler_);
if (FLAG_disassemble) {
OS::Print("Code for test '%s' {\n", name_);
@@ -220,7 +223,7 @@ void AssemblerTest::Assemble() {
CodeGenTest::CodeGenTest(const char* name)
: function_(Function::ZoneHandle()),
- node_sequence_(new SequenceNode(0,
+ node_sequence_(new SequenceNode(TokenPosition::kMinSource,
new LocalScope(NULL, 0, 0))),
default_parameter_values_(new ZoneGrowableArray<const Instance*> ()) {
ASSERT(name != NULL);
@@ -228,10 +231,11 @@ CodeGenTest::CodeGenTest(const char* name)
// Add function to a class and that class to the class dictionary so that
// frame walking can be used.
const Class& cls = Class::ZoneHandle(
- Class::New(function_name, Script::Handle(), 0));
+ Class::New(function_name, Script::Handle(),
+ TokenPosition::kMinSource));
function_ = Function::New(
function_name, RawFunction::kRegularFunction,
- true, false, false, false, false, cls, 0);
+ true, false, false, false, false, cls, TokenPosition::kMinSource);
function_.set_result_type(Type::Handle(Type::DynamicType()));
const Array& functions = Array::Handle(Array::New(1));
functions.SetAt(0, function_);
« no previous file with comments | « runtime/vm/token_position.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698