OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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/weak_code.h" | 5 #include "vm/weak_code.h" |
6 | 6 |
7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
8 | 8 |
9 #include "vm/code_generator.h" | |
10 #include "vm/code_patcher.h" | 9 #include "vm/code_patcher.h" |
11 #include "vm/object.h" | 10 #include "vm/object.h" |
| 11 #include "vm/runtime_entry.h" |
12 #include "vm/stack_frame.h" | 12 #include "vm/stack_frame.h" |
13 | 13 |
14 namespace dart { | 14 namespace dart { |
15 | 15 |
16 bool WeakCodeReferences::HasCodes() const { | 16 bool WeakCodeReferences::HasCodes() const { |
17 return !array_.IsNull() && (array_.Length() > 0); | 17 return !array_.IsNull() && (array_.Length() > 0); |
18 } | 18 } |
19 | 19 |
20 | 20 |
21 void WeakCodeReferences::Register(const Code& value) { | 21 void WeakCodeReferences::Register(const Code& value) { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // Make non-OSR code non-entrant. | 126 // Make non-OSR code non-entrant. |
127 if (!code.IsDisabled()) { | 127 if (!code.IsDisabled()) { |
128 ReportSwitchingCode(code); | 128 ReportSwitchingCode(code); |
129 code.DisableDartCode(); | 129 code.DisableDartCode(); |
130 } | 130 } |
131 } | 131 } |
132 } | 132 } |
133 } | 133 } |
134 | 134 |
135 } // namespace dart | 135 } // namespace dart |
OLD | NEW |