| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_CODE_GENERATOR_IA32_H_ | 5 #ifndef VM_CODE_GENERATOR_IA32_H_ |
| 6 #define VM_CODE_GENERATOR_IA32_H_ | 6 #define VM_CODE_GENERATOR_IA32_H_ |
| 7 | 7 |
| 8 #ifndef VM_CODE_GENERATOR_H_ | 8 #ifndef VM_CODE_GENERATOR_H_ |
| 9 #error Do not include code_generator_ia32.h directly; use code_generator.h. | 9 #error Do not include code_generator_ia32.h directly; use code_generator.h. |
| 10 #endif | 10 #endif |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 friend class OptimizingCodeGenerator; | 127 friend class OptimizingCodeGenerator; |
| 128 | 128 |
| 129 // Return true if intrinsification succeeded and no more code is needed. | 129 // Return true if intrinsification succeeded and no more code is needed. |
| 130 // Returns false if either no intrinsification occured or if intrinsified | 130 // Returns false if either no intrinsification occured or if intrinsified |
| 131 // code needs the rest for slow case execution. | 131 // code needs the rest for slow case execution. |
| 132 bool TryIntrinsify(); | 132 bool TryIntrinsify(); |
| 133 | 133 |
| 134 void IntrinsifyGetter(); | 134 void IntrinsifyGetter(); |
| 135 void IntrinsifySetter(); | 135 void IntrinsifySetter(); |
| 136 | 136 |
| 137 virtual void GeneratePreEntryCode(); | |
| 138 void GenerateLegacyEntryCode(); | 137 void GenerateLegacyEntryCode(); |
| 139 void GenerateEntryCode(); | 138 void GenerateEntryCode(); |
| 140 void GenerateLoadVariable(Register dst, const LocalVariable& local); | 139 void GenerateLoadVariable(Register dst, const LocalVariable& local); |
| 141 void GeneratePushVariable(const LocalVariable& variable, Register scratch); | 140 void GeneratePushVariable(const LocalVariable& variable, Register scratch); |
| 142 void GenerateStoreVariable(const LocalVariable& local, | 141 void GenerateStoreVariable(const LocalVariable& local, |
| 143 Register src, | 142 Register src, |
| 144 Register scratch); | 143 Register scratch); |
| 145 void GenerateLogicalNotOp(UnaryOpNode* node); | 144 void GenerateLogicalNotOp(UnaryOpNode* node); |
| 146 void GenerateLogicalAndOrOp(BinaryOpNode* node); | 145 void GenerateLogicalAndOrOp(BinaryOpNode* node); |
| 147 void GenerateInstanceGetterCall(intptr_t node_id, | 146 void GenerateInstanceGetterCall(intptr_t node_id, |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // The runtime context level is only incremented when a new context is | 261 // The runtime context level is only incremented when a new context is |
| 263 // allocated and chained to the list of contexts. | 262 // allocated and chained to the list of contexts. |
| 264 intptr_t context_level_; | 263 intptr_t context_level_; |
| 265 | 264 |
| 266 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); | 265 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); |
| 267 }; | 266 }; |
| 268 | 267 |
| 269 } // namespace dart | 268 } // namespace dart |
| 270 | 269 |
| 271 #endif // VM_CODE_GENERATOR_IA32_H_ | 270 #endif // VM_CODE_GENERATOR_IA32_H_ |
| OLD | NEW |