OLD | NEW |
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 #ifndef VM_STUB_CODE_H_ | 5 #ifndef VM_STUB_CODE_H_ |
6 #define VM_STUB_CODE_H_ | 6 #define VM_STUB_CODE_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 static void ReadFrom(SnapshotReader* reader); | 103 static void ReadFrom(SnapshotReader* reader); |
104 static void WriteTo(SnapshotWriter* writer); | 104 static void WriteTo(SnapshotWriter* writer); |
105 | 105 |
106 // Generate all stubs which are generated on a per isolate basis as they | 106 // Generate all stubs which are generated on a per isolate basis as they |
107 // have embedded objects which are isolate specific. | 107 // have embedded objects which are isolate specific. |
108 static void Init(Isolate* isolate); | 108 static void Init(Isolate* isolate); |
109 | 109 |
110 static void VisitObjectPointers(ObjectPointerVisitor* visitor); | 110 static void VisitObjectPointers(ObjectPointerVisitor* visitor); |
111 | 111 |
| 112 // Returns true if stub code has been initialized. |
| 113 static bool HasBeenInitialized(); |
| 114 |
112 // Check if specified pc is in the dart invocation stub used for | 115 // Check if specified pc is in the dart invocation stub used for |
113 // transitioning into dart code. | 116 // transitioning into dart code. |
114 static bool InInvocationStub(uword pc); | 117 static bool InInvocationStub(uword pc); |
115 | 118 |
116 // Check if the specified pc is in the jump to exception handler stub. | 119 // Check if the specified pc is in the jump to exception handler stub. |
117 static bool InJumpToExceptionHandlerStub(uword pc); | 120 static bool InJumpToExceptionHandlerStub(uword pc); |
118 | 121 |
119 // Returns NULL if no stub found. | 122 // Returns NULL if no stub found. |
120 static const char* NameOfStub(uword entry_point); | 123 static const char* NameOfStub(uword entry_point); |
121 | 124 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 184 |
182 | 185 |
183 enum DeoptStubKind { | 186 enum DeoptStubKind { |
184 kLazyDeopt, | 187 kLazyDeopt, |
185 kEagerDeopt | 188 kEagerDeopt |
186 }; | 189 }; |
187 | 190 |
188 } // namespace dart | 191 } // namespace dart |
189 | 192 |
190 #endif // VM_STUB_CODE_H_ | 193 #endif // VM_STUB_CODE_H_ |
OLD | NEW |