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

Side by Side Diff: runtime/vm/code_generator_test.cc

Issue 144343002: Rename kDummyTokenIndex to kNoSourcePos (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_descriptors_test.cc ('k') | runtime/vm/code_patcher_arm_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/globals.h" 6 #include "vm/globals.h"
7 #include "vm/ast.h" 7 #include "vm/ast.h"
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/class_finalizer.h" 9 #include "vm/class_finalizer.h"
10 #include "vm/code_generator.h" 10 #include "vm/code_generator.h"
11 #include "vm/compiler.h" 11 #include "vm/compiler.h"
12 #include "vm/dart_entry.h" 12 #include "vm/dart_entry.h"
13 #include "vm/native_entry.h" 13 #include "vm/native_entry.h"
14 #include "vm/native_entry_test.h" 14 #include "vm/native_entry_test.h"
15 #include "vm/symbols.h" 15 #include "vm/symbols.h"
16 #include "vm/unit_test.h" 16 #include "vm/unit_test.h"
17 #include "vm/virtual_memory.h" 17 #include "vm/virtual_memory.h"
18 18
19 namespace dart { 19 namespace dart {
20 20
21 static const intptr_t kPos = Scanner::kDummyTokenIndex; 21 static const intptr_t kPos = Scanner::kNoSourcePos;
22 22
23 23
24 CODEGEN_TEST_GENERATE(SimpleReturnCodegen, test) { 24 CODEGEN_TEST_GENERATE(SimpleReturnCodegen, test) {
25 test->node_sequence()->Add(new ReturnNode(kPos)); 25 test->node_sequence()->Add(new ReturnNode(kPos));
26 } 26 }
27 CODEGEN_TEST_RUN(SimpleReturnCodegen, Instance::null()) 27 CODEGEN_TEST_RUN(SimpleReturnCodegen, Instance::null())
28 28
29 29
30 CODEGEN_TEST_GENERATE(SmiReturnCodegen, test) { 30 CODEGEN_TEST_GENERATE(SmiReturnCodegen, test) {
31 LiteralNode* l = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3))); 31 LiteralNode* l = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3)));
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 intptr_t num_libs = libs.Length(); 559 intptr_t num_libs = libs.Length();
560 Library& app_lib = Library::Handle(); 560 Library& app_lib = Library::Handle();
561 app_lib ^= libs.At(num_libs - 1); 561 app_lib ^= libs.At(num_libs - 1);
562 ASSERT(!app_lib.IsNull()); 562 ASSERT(!app_lib.IsNull());
563 const Class& cls = Class::Handle( 563 const Class& cls = Class::Handle(
564 app_lib.LookupClass(String::Handle(Symbols::New("A")))); 564 app_lib.LookupClass(String::Handle(Symbols::New("A"))));
565 EXPECT_EQ(cls.raw(), result.clazz()); 565 EXPECT_EQ(cls.raw(), result.clazz());
566 } 566 }
567 567
568 } // namespace dart 568 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_descriptors_test.cc ('k') | runtime/vm/code_patcher_arm_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698