| 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 17 matching lines...) Expand all Loading... |
| 28 V(MegamorphicLookup) \ | 28 V(MegamorphicLookup) \ |
| 29 V(CallStaticFunction) \ | 29 V(CallStaticFunction) \ |
| 30 V(CallClosureFunction) \ | 30 V(CallClosureFunction) \ |
| 31 V(FixCallersTarget) \ | 31 V(FixCallersTarget) \ |
| 32 V(Deoptimize) \ | 32 V(Deoptimize) \ |
| 33 V(BreakpointStatic) \ | 33 V(BreakpointStatic) \ |
| 34 V(BreakpointReturn) \ | 34 V(BreakpointReturn) \ |
| 35 V(Subtype1TestCache) \ | 35 V(Subtype1TestCache) \ |
| 36 V(Subtype2TestCache) \ | 36 V(Subtype2TestCache) \ |
| 37 V(Subtype3TestCache) \ | 37 V(Subtype3TestCache) \ |
| 38 V(GetStackPointer) \ |
| 39 V(JumpToExceptionHandler) \ |
| 40 V(JumpToErrorHandler) \ |
| 38 | 41 |
| 39 // Is it permitted for the stubs above to refer to Object::null(), which is | 42 // Is it permitted for the stubs above to refer to Object::null(), which is |
| 40 // allocated in the VM isolate and shared across all isolates. | 43 // allocated in the VM isolate and shared across all isolates. |
| 41 // However, in cases where a simple GC-safe placeholder is needed on the stack, | 44 // However, in cases where a simple GC-safe placeholder is needed on the stack, |
| 42 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi | 45 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi |
| 43 // does not require relocation. | 46 // does not require relocation. |
| 44 | 47 |
| 45 // List of stubs created per isolate, these stubs could potentially contain | 48 // List of stubs created per isolate, these stubs could potentially contain |
| 46 // embedded objects and hence cannot be shared across isolates. | 49 // embedded objects and hence cannot be shared across isolates. |
| 47 #define STUB_CODE_LIST(V) \ | 50 #define STUB_CODE_LIST(V) \ |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 const Class& cls); | 179 const Class& cls); |
| 177 static void GenerateAllocationStubForClosure(Assembler* assembler, | 180 static void GenerateAllocationStubForClosure(Assembler* assembler, |
| 178 const Function& func); | 181 const Function& func); |
| 179 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, | 182 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, |
| 180 intptr_t num_args); | 183 intptr_t num_args); |
| 181 }; | 184 }; |
| 182 | 185 |
| 183 } // namespace dart | 186 } // namespace dart |
| 184 | 187 |
| 185 #endif // VM_STUB_CODE_H_ | 188 #endif // VM_STUB_CODE_H_ |
| OLD | NEW |