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_FLOW_GRAPH_COMPILER_X64_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_X64_H_ |
6 #define VM_FLOW_GRAPH_COMPILER_X64_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_X64_H_ |
7 | 7 |
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ | 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h. | 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h. |
10 #endif | 10 #endif |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 } | 205 } |
206 | 206 |
207 // Returns true if the generated code does not call other Dart code or | 207 // Returns true if the generated code does not call other Dart code or |
208 // runtime. Only deoptimization is allowed to occur. Closures are not leaf. | 208 // runtime. Only deoptimization is allowed to occur. Closures are not leaf. |
209 bool IsLeaf() const; | 209 bool IsLeaf() const; |
210 | 210 |
211 private: | 211 private: |
212 void GenerateDeferredCode(); | 212 void GenerateDeferredCode(); |
213 | 213 |
214 void EmitInstructionPrologue(Instruction* instr); | 214 void EmitInstructionPrologue(Instruction* instr); |
215 void EmitInstructionEpilogue(Instruction* instr); | |
216 | 215 |
217 // Emit code to load a Value into register 'dst'. | 216 // Emit code to load a Value into register 'dst'. |
218 void LoadValue(Register dst, Value* value); | 217 void LoadValue(Register dst, Value* value); |
219 | 218 |
220 void EmitStaticCall(const Function& function, | 219 void EmitStaticCall(const Function& function, |
221 const Array& arguments_descriptor, | 220 const Array& arguments_descriptor, |
222 intptr_t argument_count, | 221 intptr_t argument_count, |
223 intptr_t deopt_id, | 222 intptr_t deopt_id, |
224 intptr_t token_pos, | 223 intptr_t token_pos, |
225 LocationSummary* locs); | 224 LocationSummary* locs); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // that should be used when deoptimizing we store it in this variable. | 316 // that should be used when deoptimizing we store it in this variable. |
318 // In future AddDeoptStub should be moved out of the instruction template. | 317 // In future AddDeoptStub should be moved out of the instruction template. |
319 Environment* pending_deoptimization_env_; | 318 Environment* pending_deoptimization_env_; |
320 | 319 |
321 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 320 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
322 }; | 321 }; |
323 | 322 |
324 } // namespace dart | 323 } // namespace dart |
325 | 324 |
326 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ | 325 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ |
OLD | NEW |