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/stub_code.h" | 5 #include "vm/stub_code.h" |
6 | 6 |
7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/disassembler.h" | 9 #include "vm/disassembler.h" |
10 #include "vm/flags.h" | 10 #include "vm/flags.h" |
11 #include "vm/symbols.h" | |
Ivan Posva
2013/01/17 08:03:20
Why is this needed?
Vyacheslav Egorov (Google)
2013/01/17 12:46:38
Accidental edit. Fully reverted.
| |
11 #include "vm/virtual_memory.h" | 12 #include "vm/virtual_memory.h" |
12 #include "vm/visitor.h" | 13 #include "vm/visitor.h" |
13 | 14 |
14 namespace dart { | 15 namespace dart { |
15 | 16 |
16 DEFINE_FLAG(bool, disassemble_stubs, false, "Disassemble generated stubs."); | 17 DEFINE_FLAG(bool, disassemble_stubs, false, "Disassemble generated stubs."); |
17 | 18 |
18 #define STUB_CODE_DECLARE(name) \ | 19 #define STUB_CODE_DECLARE(name) \ |
19 StubEntry* StubCode::name##_entry_ = NULL; | 20 StubEntry* StubCode::name##_entry_ = NULL; |
20 VM_STUB_CODE_LIST(STUB_CODE_DECLARE); | 21 VM_STUB_CODE_LIST(STUB_CODE_DECLARE); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 VM_STUB_CODE_LIST(STUB_CODE_TESTER); | 164 VM_STUB_CODE_LIST(STUB_CODE_TESTER); |
164 Isolate* isolate = Isolate::Current(); | 165 Isolate* isolate = Isolate::Current(); |
165 if ((isolate != NULL) && (isolate->stub_code() != NULL)) { | 166 if ((isolate != NULL) && (isolate->stub_code() != NULL)) { |
166 STUB_CODE_LIST(STUB_CODE_TESTER); | 167 STUB_CODE_LIST(STUB_CODE_TESTER); |
167 } | 168 } |
168 #undef STUB_CODE_TESTER | 169 #undef STUB_CODE_TESTER |
169 return NULL; | 170 return NULL; |
170 } | 171 } |
171 | 172 |
172 } // namespace dart | 173 } // namespace dart |
OLD | NEW |