| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 V(ClosureCallInlineCache) \ | 61 V(ClosureCallInlineCache) \ |
| 62 V(ZeroArgsUnoptimizedStaticCall) \ | 62 V(ZeroArgsUnoptimizedStaticCall) \ |
| 63 V(TwoArgsUnoptimizedStaticCall) \ | 63 V(TwoArgsUnoptimizedStaticCall) \ |
| 64 V(OptimizeFunction) \ | 64 V(OptimizeFunction) \ |
| 65 V(InvokeDartCode) \ | 65 V(InvokeDartCode) \ |
| 66 | 66 |
| 67 // class StubEntry is used to describe stub methods generated in dart to | 67 // class StubEntry is used to describe stub methods generated in dart to |
| 68 // abstract out common code executed from generated dart code. | 68 // abstract out common code executed from generated dart code. |
| 69 class StubEntry { | 69 class StubEntry { |
| 70 public: | 70 public: |
| 71 StubEntry(const char* name, const Code& code); | 71 explicit StubEntry(const Code& code); |
| 72 ~StubEntry() {} | 72 ~StubEntry() {} |
| 73 | 73 |
| 74 const ExternalLabel& label() const { return label_; } | 74 const ExternalLabel& label() const { return label_; } |
| 75 uword EntryPoint() const { return entry_point_; } | 75 uword EntryPoint() const { return entry_point_; } |
| 76 RawCode* code() const { return code_; } | 76 RawCode* code() const { return code_; } |
| 77 intptr_t Size() const { return size_; } | 77 intptr_t Size() const { return size_; } |
| 78 | 78 |
| 79 // Visit all object pointers. | 79 // Visit all object pointers. |
| 80 void VisitObjectPointers(ObjectPointerVisitor* visitor); | 80 void VisitObjectPointers(ObjectPointerVisitor* visitor); |
| 81 | 81 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 Assembler* assembler, | 201 Assembler* assembler, |
| 202 const Register left, | 202 const Register left, |
| 203 const Register right, | 203 const Register right, |
| 204 const Register temp1 = kNoRegister, | 204 const Register temp1 = kNoRegister, |
| 205 const Register temp2 = kNoRegister); | 205 const Register temp2 = kNoRegister); |
| 206 }; | 206 }; |
| 207 | 207 |
| 208 } // namespace dart | 208 } // namespace dart |
| 209 | 209 |
| 210 #endif // VM_STUB_CODE_H_ | 210 #endif // VM_STUB_CODE_H_ |
| OLD | NEW |