OLD | NEW |
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 "vm/unit_test.h" | 5 #include "vm/unit_test.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include "bin/builtin.h" | 9 #include "bin/builtin.h" |
10 #include "bin/dartutils.h" | 10 #include "bin/dartutils.h" |
11 | 11 |
12 #include "platform/globals.h" | 12 #include "platform/globals.h" |
13 #include "vm/assembler.h" | 13 #include "vm/assembler.h" |
14 #include "vm/ast_printer.h" | 14 #include "vm/ast_printer.h" |
15 #include "vm/compiler.h" | 15 #include "vm/compiler.h" |
16 #include "vm/dart_api_impl.h" | 16 #include "vm/dart_api_impl.h" |
17 #include "vm/disassembler.h" | 17 #include "vm/disassembler.h" |
18 #include "vm/parser.h" | 18 #include "vm/parser.h" |
19 #include "vm/symbols.h" | 19 #include "vm/symbols.h" |
20 #include "vm/thread.h" | 20 #include "vm/thread.h" |
21 #include "vm/virtual_memory.h" | 21 #include "vm/virtual_memory.h" |
22 | 22 |
23 using dart::bin::Builtin; | 23 using dart::bin::Builtin; |
24 using dart::bin::DartUtils; | 24 using dart::bin::DartUtils; |
25 | 25 |
26 namespace dart { | 26 namespace dart { |
27 | 27 |
28 DECLARE_FLAG(bool, disassemble); | |
29 | |
30 TestCaseBase* TestCaseBase::first_ = NULL; | 28 TestCaseBase* TestCaseBase::first_ = NULL; |
31 TestCaseBase* TestCaseBase::tail_ = NULL; | 29 TestCaseBase* TestCaseBase::tail_ = NULL; |
32 | 30 |
33 | 31 |
34 TestCaseBase::TestCaseBase(const char* name) : next_(NULL), name_(name) { | 32 TestCaseBase::TestCaseBase(const char* name) : next_(NULL), name_(name) { |
35 if (first_ == NULL) { | 33 if (first_ == NULL) { |
36 first_ = this; | 34 first_ = this; |
37 } else { | 35 } else { |
38 tail_->next_ = this; | 36 tail_->next_ = this; |
39 } | 37 } |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 } | 298 } |
301 // Copy the remainder of in to out. | 299 // Copy the remainder of in to out. |
302 while (*in != '\0') { | 300 while (*in != '\0') { |
303 *out++ = *in++; | 301 *out++ = *in++; |
304 } | 302 } |
305 *out = '\0'; | 303 *out = '\0'; |
306 } | 304 } |
307 | 305 |
308 | 306 |
309 } // namespace dart | 307 } // namespace dart |
OLD | NEW |