| 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 |  | 
| 115   // Check if specified pc is in the dart invocation stub used for | 112   // Check if specified pc is in the dart invocation stub used for | 
| 116   // transitioning into dart code. | 113   // transitioning into dart code. | 
| 117   static bool InInvocationStub(uword pc); | 114   static bool InInvocationStub(uword pc); | 
| 118 | 115 | 
| 119   // Check if the specified pc is in the jump to exception handler stub. | 116   // Check if the specified pc is in the jump to exception handler stub. | 
| 120   static bool InJumpToExceptionHandlerStub(uword pc); | 117   static bool InJumpToExceptionHandlerStub(uword pc); | 
| 121 | 118 | 
| 122   // Returns NULL if no stub found. | 119   // Returns NULL if no stub found. | 
| 123   static const char* NameOfStub(uword entry_point); | 120   static const char* NameOfStub(uword entry_point); | 
| 124 | 121 | 
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 184 | 181 | 
| 185 | 182 | 
| 186 enum DeoptStubKind { | 183 enum DeoptStubKind { | 
| 187   kLazyDeopt, | 184   kLazyDeopt, | 
| 188   kEagerDeopt | 185   kEagerDeopt | 
| 189 }; | 186 }; | 
| 190 | 187 | 
| 191 }  // namespace dart | 188 }  // namespace dart | 
| 192 | 189 | 
| 193 #endif  // VM_STUB_CODE_H_ | 190 #endif  // VM_STUB_CODE_H_ | 
| OLD | NEW | 
|---|