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

Side by Side Diff: runtime/vm/code_generator_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, 10 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
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/code_patcher_arm64_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/globals.h" 5 #include "platform/globals.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
11 #include "vm/class_finalizer.h" 11 #include "vm/class_finalizer.h"
12 #include "vm/code_generator.h" 12 #include "vm/code_generator.h"
13 #include "vm/compiler.h" 13 #include "vm/compiler.h"
14 #include "vm/dart_entry.h" 14 #include "vm/dart_entry.h"
15 #include "vm/native_entry.h" 15 #include "vm/native_entry.h"
16 #include "vm/native_entry_test.h" 16 #include "vm/native_entry_test.h"
17 #include "vm/symbols.h" 17 #include "vm/symbols.h"
18 #include "vm/unit_test.h" 18 #include "vm/unit_test.h"
19 #include "vm/virtual_memory.h" 19 #include "vm/virtual_memory.h"
20 20
21 namespace dart { 21 namespace dart {
22 22
23 static const intptr_t kPos = 0; 23 static const TokenPosition kPos = TokenPosition::kMinSource;
24 24
25 25
26 CODEGEN_TEST_GENERATE(SimpleReturnCodegen, test) { 26 CODEGEN_TEST_GENERATE(SimpleReturnCodegen, test) {
27 test->node_sequence()->Add(new ReturnNode(kPos)); 27 test->node_sequence()->Add(new ReturnNode(kPos));
28 } 28 }
29 CODEGEN_TEST_RUN(SimpleReturnCodegen, Instance::null()) 29 CODEGEN_TEST_RUN(SimpleReturnCodegen, Instance::null())
30 30
31 31
32 CODEGEN_TEST_GENERATE(SmiReturnCodegen, test) { 32 CODEGEN_TEST_GENERATE(SmiReturnCodegen, test) {
33 LiteralNode* l = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3))); 33 LiteralNode* l = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3)));
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 intptr_t num_libs = libs.Length(); 358 intptr_t num_libs = libs.Length();
359 Library& app_lib = Library::Handle(); 359 Library& app_lib = Library::Handle();
360 app_lib ^= libs.At(num_libs - 1); 360 app_lib ^= libs.At(num_libs - 1);
361 ASSERT(!app_lib.IsNull()); 361 ASSERT(!app_lib.IsNull());
362 const Class& cls = Class::Handle( 362 const Class& cls = Class::Handle(
363 app_lib.LookupClass(String::Handle(Symbols::New("A")))); 363 app_lib.LookupClass(String::Handle(Symbols::New("A"))));
364 EXPECT_EQ(cls.raw(), result.clazz()); 364 EXPECT_EQ(cls.raw(), result.clazz());
365 } 365 }
366 366
367 } // namespace dart 367 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/code_patcher_arm64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698