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

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

Issue 261783005: Begins work on arm64 floating point instructions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/disassembler_arm64.cc ('k') | runtime/vm/simulator_arm64.h » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 5
6 #include "vm/ast_printer.h" 6 #include "vm/ast_printer.h"
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/debugger.h" 8 #include "vm/debugger.h"
9 #include "vm/longjump.h" 9 #include "vm/longjump.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 Parser::ParseCompilationUnit(lib, script); 159 Parser::ParseCompilationUnit(lib, script);
160 EXPECT(ClassFinalizer::ProcessPendingClasses()); 160 EXPECT(ClassFinalizer::ProcessPendingClasses());
161 161
162 DumpFunction(lib, "A", "foo"); 162 DumpFunction(lib, "A", "foo");
163 DumpFunction(lib, "A", "bar"); 163 DumpFunction(lib, "A", "bar");
164 DumpFunction(lib, "A", "baz"); 164 DumpFunction(lib, "A", "baz");
165 DumpFunction(lib, "B", "bam"); 165 DumpFunction(lib, "B", "bam");
166 } 166 }
167 167
168 168
169 // TODO(zra): Remove after porting relevant arm64 features.
170 #if !defined(TARGET_ARCH_ARM64)
171
169 const char* saved_vars = NULL; 172 const char* saved_vars = NULL;
170 173
171 174
172 char* SkipIndex(const char* input) { 175 char* SkipIndex(const char* input) {
173 char* output_buffer = new char[strlen(input)]; 176 char* output_buffer = new char[strlen(input)];
174 char* output = output_buffer; 177 char* output = output_buffer;
175 178
176 while (input[0] != '\0') { 179 while (input[0] != '\0') {
177 const char* index_pos = strstr(input, "index="); 180 const char* index_pos = strstr(input, "index=");
178 if (index_pos == NULL) { 181 if (index_pos == NULL) {
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // 484 //
482 // https://code.google.com/p/dart/issues/detail?id=18561 485 // https://code.google.com/p/dart/issues/detail?id=18561
483 "::.outer\n" 486 "::.outer\n"
484 " 0 StackVar scope=3 begin=9 end=50 name=i\n" 487 " 0 StackVar scope=3 begin=9 end=50 name=i\n"
485 " 1 ContextLevel level=1 scope=4 begin=20 end=50\n" 488 " 1 ContextLevel level=1 scope=4 begin=20 end=50\n"
486 " 2 ContextVar level=1 begin=23 end=50 name=value\n" 489 " 2 ContextVar level=1 begin=23 end=50 name=value\n"
487 " 3 StackVar scope=4 begin=30 end=50 name=inner\n", 490 " 3 StackVar scope=4 begin=30 end=50 name=inner\n",
488 CaptureVarsAtLine(lib, "outer", 5)); 491 CaptureVarsAtLine(lib, "outer", 5));
489 } 492 }
490 493
494 #endif
495
491 } // namespace dart 496 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_arm64.cc ('k') | runtime/vm/simulator_arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698