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

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

Issue 9325047: Add token index position to classes and types for more accurate error reporting. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_generator_ia32.cc ('k') | runtime/vm/code_generator_x64.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 #if defined(TARGET_ARCH_IA32) 7 #if defined(TARGET_ARCH_IA32)
8 8
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/unit_test.h" 17 #include "vm/unit_test.h"
18 #include "vm/virtual_memory.h" 18 #include "vm/virtual_memory.h"
19 19
20 namespace dart { 20 namespace dart {
21 21
22 #define __ assembler_-> 22 #define __ assembler_->
23 23
24 24
25 static const intptr_t kPos = 1; // Dummy token index in non-existing source. 25 static const intptr_t kPos = Scanner::kDummyTokenIndex;
26 26
27 27
28 // Helper to allocate and return a LocalVariable. 28 // Helper to allocate and return a LocalVariable.
29 static LocalVariable* NewTestLocalVariable(const char* name) { 29 static LocalVariable* NewTestLocalVariable(const char* name) {
30 const String& variable_name = String::ZoneHandle(String::New(name)); 30 const String& variable_name = String::ZoneHandle(String::New(name));
31 const Type& variable_type = Type::ZoneHandle(Type::DynamicType()); 31 const Type& variable_type = Type::ZoneHandle(Type::DynamicType());
32 return new LocalVariable(kPos, variable_name, variable_type); 32 return new LocalVariable(kPos, variable_name, variable_type);
33 } 33 }
34 34
35 35
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 const Library& app_lib = Library::Handle( 491 const Library& app_lib = Library::Handle(
492 Isolate::Current()->object_store()->registered_libraries()); 492 Isolate::Current()->object_store()->registered_libraries());
493 const Class& cls = Class::Handle( 493 const Class& cls = Class::Handle(
494 app_lib.LookupClass(String::Handle(String::NewSymbol("A")))); 494 app_lib.LookupClass(String::Handle(String::NewSymbol("A"))));
495 EXPECT_EQ(cls.raw(), result.clazz()); 495 EXPECT_EQ(cls.raw(), result.clazz());
496 } 496 }
497 497
498 } // namespace dart 498 } // namespace dart
499 499
500 #endif // defined TARGET_ARCH_IA32 500 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/code_generator_ia32.cc ('k') | runtime/vm/code_generator_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698