| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // List of stubs created per isolate, these stubs could potentially contain | 49 // List of stubs created per isolate, these stubs could potentially contain |
| 50 // embedded objects and hence cannot be shared across isolates. | 50 // embedded objects and hence cannot be shared across isolates. |
| 51 #define STUB_CODE_LIST(V) \ | 51 #define STUB_CODE_LIST(V) \ |
| 52 V(InvokeDartCode) \ | 52 V(InvokeDartCode) \ |
| 53 V(AllocateContext) \ | 53 V(AllocateContext) \ |
| 54 V(UpdateStoreBuffer) \ | 54 V(UpdateStoreBuffer) \ |
| 55 V(OneArgCheckInlineCache) \ | 55 V(OneArgCheckInlineCache) \ |
| 56 V(TwoArgsCheckInlineCache) \ | 56 V(TwoArgsCheckInlineCache) \ |
| 57 V(ThreeArgsCheckInlineCache) \ | 57 V(ThreeArgsCheckInlineCache) \ |
| 58 V(BreakpointDynamic) \ | 58 V(BreakpointDynamic) \ |
| 59 | 59 V(EqualityWithNullArg) \ |
| 60 | 60 |
| 61 // class StubEntry is used to describe stub methods generated in dart to | 61 // class StubEntry is used to describe stub methods generated in dart to |
| 62 // abstract out common code executed from generated dart code. | 62 // abstract out common code executed from generated dart code. |
| 63 class StubEntry { | 63 class StubEntry { |
| 64 public: | 64 public: |
| 65 StubEntry(const char* name, const Code& code); | 65 StubEntry(const char* name, const Code& code); |
| 66 ~StubEntry() {} | 66 ~StubEntry() {} |
| 67 | 67 |
| 68 const ExternalLabel& label() const { return label_; } | 68 const ExternalLabel& label() const { return label_; } |
| 69 uword EntryPoint() const { return entry_point_; } | 69 uword EntryPoint() const { return entry_point_; } |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 const Class& cls); | 181 const Class& cls); |
| 182 static void GenerateAllocationStubForClosure(Assembler* assembler, | 182 static void GenerateAllocationStubForClosure(Assembler* assembler, |
| 183 const Function& func); | 183 const Function& func); |
| 184 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, | 184 static void GenerateNArgsCheckInlineCacheStub(Assembler* assembler, |
| 185 intptr_t num_args); | 185 intptr_t num_args); |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 } // namespace dart | 188 } // namespace dart |
| 189 | 189 |
| 190 #endif // VM_STUB_CODE_H_ | 190 #endif // VM_STUB_CODE_H_ |
| OLD | NEW |