| 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_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
| 6 #define VM_FLOW_GRAPH_COMPILER_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/code_descriptors.h" | 10 #include "vm/code_descriptors.h" |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // This makes it easier to measure time spent in the compiler. | 273 // This makes it easier to measure time spent in the compiler. |
| 274 void InitCompiler(); | 274 void InitCompiler(); |
| 275 | 275 |
| 276 void CompileGraph(); | 276 void CompileGraph(); |
| 277 | 277 |
| 278 void VisitBlocks(); | 278 void VisitBlocks(); |
| 279 | 279 |
| 280 // Bail out of the flow graph compiler. Does not return to the caller. | 280 // Bail out of the flow graph compiler. Does not return to the caller. |
| 281 void Bailout(const char* reason); | 281 void Bailout(const char* reason); |
| 282 | 282 |
| 283 // Returns 'true' if code generation for this function is complete, i.e., | 283 void TryIntrinsify(); |
| 284 // no fall-through to regular code is needed. | |
| 285 bool TryIntrinsify(); | |
| 286 | 284 |
| 287 void GenerateCallRuntime(intptr_t token_pos, | 285 void GenerateCallRuntime(intptr_t token_pos, |
| 288 intptr_t deopt_id, | 286 intptr_t deopt_id, |
| 289 const RuntimeEntry& entry, | 287 const RuntimeEntry& entry, |
| 290 LocationSummary* locs); | 288 LocationSummary* locs); |
| 291 | 289 |
| 292 void GenerateCall(intptr_t token_pos, | 290 void GenerateCall(intptr_t token_pos, |
| 293 const ExternalLabel* label, | 291 const ExternalLabel* label, |
| 294 PcDescriptors::Kind kind, | 292 PcDescriptors::Kind kind, |
| 295 LocationSummary* locs); | 293 LocationSummary* locs); |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 // that should be used when deoptimizing we store it in this variable. | 601 // that should be used when deoptimizing we store it in this variable. |
| 604 // In future AddDeoptStub should be moved out of the instruction template. | 602 // In future AddDeoptStub should be moved out of the instruction template. |
| 605 Environment* pending_deoptimization_env_; | 603 Environment* pending_deoptimization_env_; |
| 606 | 604 |
| 607 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 605 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 608 }; | 606 }; |
| 609 | 607 |
| 610 } // namespace dart | 608 } // namespace dart |
| 611 | 609 |
| 612 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 610 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |