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