| 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(CallStaticFunction) \ | 28 V(CallStaticFunction) \ |
| 29 V(FixCallersTarget) \ | 29 V(FixCallersTarget) \ |
| 30 V(FixAllocationStubTarget) \ | 30 V(FixAllocationStubTarget) \ |
| 31 V(FixAllocateArrayStubTarget) \ | 31 V(FixAllocateArrayStubTarget) \ |
| 32 V(Deoptimize) \ | 32 V(Deoptimize) \ |
| 33 V(DeoptimizeLazy) \ | 33 V(DeoptimizeLazy) \ |
| 34 V(ICCallBreakpoint) \ | 34 V(ICCallBreakpoint) \ |
| 35 V(ClosureCallBreakpoint) \ | 35 V(ClosureCallBreakpoint) \ |
| 36 V(RuntimeCallBreakpoint) \ | 36 V(RuntimeCallBreakpoint) \ |
| 37 V(DebugStepCheck) \ | 37 V(DebugStepCheck) \ |
| 38 V(Subtype1TestCache) \ | |
| 39 V(Subtype2TestCache) \ | |
| 40 V(Subtype3TestCache) \ | |
| 41 V(GetStackPointer) \ | 38 V(GetStackPointer) \ |
| 42 V(JumpToExceptionHandler) \ | 39 V(JumpToExceptionHandler) \ |
| 43 V(UnoptimizedIdenticalWithNumberCheck) \ | 40 V(UnoptimizedIdenticalWithNumberCheck) \ |
| 44 V(OptimizedIdenticalWithNumberCheck) \ | 41 V(OptimizedIdenticalWithNumberCheck) \ |
| 45 | 42 |
| 46 // Is it permitted for the stubs above to refer to Object::null(), which is | 43 // Is it permitted for the stubs above to refer to Object::null(), which is |
| 47 // allocated in the VM isolate and shared across all isolates. | 44 // allocated in the VM isolate and shared across all isolates. |
| 48 // However, in cases where a simple GC-safe placeholder is needed on the stack, | 45 // However, in cases where a simple GC-safe placeholder is needed on the stack, |
| 49 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi | 46 // using Smi 0 instead of Object::null() is slightly more efficient, since a Smi |
| 50 // does not require relocation. | 47 // does not require relocation. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 62 V(SmiSubInlineCache) \ | 59 V(SmiSubInlineCache) \ |
| 63 V(SmiEqualInlineCache) \ | 60 V(SmiEqualInlineCache) \ |
| 64 V(OneArgOptimizedCheckInlineCache) \ | 61 V(OneArgOptimizedCheckInlineCache) \ |
| 65 V(TwoArgsOptimizedCheckInlineCache) \ | 62 V(TwoArgsOptimizedCheckInlineCache) \ |
| 66 V(ThreeArgsOptimizedCheckInlineCache) \ | 63 V(ThreeArgsOptimizedCheckInlineCache) \ |
| 67 V(ZeroArgsUnoptimizedStaticCall) \ | 64 V(ZeroArgsUnoptimizedStaticCall) \ |
| 68 V(OneArgUnoptimizedStaticCall) \ | 65 V(OneArgUnoptimizedStaticCall) \ |
| 69 V(TwoArgsUnoptimizedStaticCall) \ | 66 V(TwoArgsUnoptimizedStaticCall) \ |
| 70 V(OptimizeFunction) \ | 67 V(OptimizeFunction) \ |
| 71 V(InvokeDartCode) \ | 68 V(InvokeDartCode) \ |
| 69 V(Subtype1TestCache) \ |
| 70 V(Subtype2TestCache) \ |
| 71 V(Subtype3TestCache) \ |
| 72 | 72 |
| 73 // class StubEntry is used to describe stub methods generated in dart to | 73 // class StubEntry is used to describe stub methods generated in dart to |
| 74 // abstract out common code executed from generated dart code. | 74 // abstract out common code executed from generated dart code. |
| 75 class StubEntry { | 75 class StubEntry { |
| 76 public: | 76 public: |
| 77 explicit StubEntry(const Code& code); | 77 explicit StubEntry(const Code& code); |
| 78 ~StubEntry() {} | 78 ~StubEntry() {} |
| 79 | 79 |
| 80 const ExternalLabel& label() const { return label_; } | 80 const ExternalLabel& label() const { return label_; } |
| 81 uword EntryPoint() const { return entry_point_; } | 81 uword EntryPoint() const { return entry_point_; } |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 Assembler* assembler, | 217 Assembler* assembler, |
| 218 const Register left, | 218 const Register left, |
| 219 const Register right, | 219 const Register right, |
| 220 const Register temp1 = kNoRegister, | 220 const Register temp1 = kNoRegister, |
| 221 const Register temp2 = kNoRegister); | 221 const Register temp2 = kNoRegister); |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 } // namespace dart | 224 } // namespace dart |
| 225 | 225 |
| 226 #endif // VM_STUB_CODE_H_ | 226 #endif // VM_STUB_CODE_H_ |
| OLD | NEW |