| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // Is it permitted for the stubs above to refer to Object::null(), which is | 44 // Is it permitted for the stubs above to refer to Object::null(), which is |
| 45 // allocated in the VM isolate and shared across all isolates. | 45 // allocated in the VM isolate and shared across all isolates. |
| 46 // However, in cases where a simple GC-safe placeholder is needed on the stack, | 46 // However, in cases where a simple GC-safe placeholder is needed on the stack, |
| 47 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi | 47 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi |
| 48 // does not require relocation. | 48 // does not require relocation. |
| 49 | 49 |
| 50 // List of stubs created per isolate, these stubs could potentially contain | 50 // List of stubs created per isolate, these stubs could potentially contain |
| 51 // embedded objects and hence cannot be shared across isolates. | 51 // embedded objects and hence cannot be shared across isolates. |
| 52 #define STUB_CODE_LIST(V) \ | 52 #define STUB_CODE_LIST(V) \ |
| 53 V(AllocateArray) \ | 53 V(AllocateArray) \ |
| 54 V(CallNoSuchMethodFunction) \ | 54 V(CallClosureNoSuchMethod) \ |
| 55 V(AllocateContext) \ | 55 V(AllocateContext) \ |
| 56 V(UpdateStoreBuffer) \ | 56 V(UpdateStoreBuffer) \ |
| 57 V(OneArgCheckInlineCache) \ | 57 V(OneArgCheckInlineCache) \ |
| 58 V(TwoArgsCheckInlineCache) \ | 58 V(TwoArgsCheckInlineCache) \ |
| 59 V(ThreeArgsCheckInlineCache) \ | 59 V(ThreeArgsCheckInlineCache) \ |
| 60 V(SmiAddInlineCache) \ | 60 V(SmiAddInlineCache) \ |
| 61 V(SmiSubInlineCache) \ | 61 V(SmiSubInlineCache) \ |
| 62 V(SmiEqualInlineCache) \ | 62 V(SmiEqualInlineCache) \ |
| 63 V(OneArgOptimizedCheckInlineCache) \ | 63 V(OneArgOptimizedCheckInlineCache) \ |
| 64 V(TwoArgsOptimizedCheckInlineCache) \ | 64 V(TwoArgsOptimizedCheckInlineCache) \ |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 Assembler* assembler, | 215 Assembler* assembler, |
| 216 const Register left, | 216 const Register left, |
| 217 const Register right, | 217 const Register right, |
| 218 const Register temp1 = kNoRegister, | 218 const Register temp1 = kNoRegister, |
| 219 const Register temp2 = kNoRegister); | 219 const Register temp2 = kNoRegister); |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 } // namespace dart | 222 } // namespace dart |
| 223 | 223 |
| 224 #endif // VM_STUB_CODE_H_ | 224 #endif // VM_STUB_CODE_H_ |
| OLD | NEW |