| 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/assembler_macros.h" | 10 #include "vm/assembler_macros.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // This makes it easier to measure time spent in the compiler. | 203 // This makes it easier to measure time spent in the compiler. |
| 204 void InitCompiler(); | 204 void InitCompiler(); |
| 205 | 205 |
| 206 void CompileGraph(); | 206 void CompileGraph(); |
| 207 | 207 |
| 208 void VisitBlocks(); | 208 void VisitBlocks(); |
| 209 | 209 |
| 210 // Bail out of the flow graph compiler. Does not return to the caller. | 210 // Bail out of the flow graph compiler. Does not return to the caller. |
| 211 void Bailout(const char* reason); | 211 void Bailout(const char* reason); |
| 212 | 212 |
| 213 void LoadDoubleOrSmiToFpu(FpuRegister result, | |
| 214 Register reg, | |
| 215 Register temp, | |
| 216 Label* not_double_or_smi); | |
| 217 | |
| 218 // Returns 'true' if code generation for this function is complete, i.e., | 213 // Returns 'true' if code generation for this function is complete, i.e., |
| 219 // no fall-through to regular code is needed. | 214 // no fall-through to regular code is needed. |
| 220 bool TryIntrinsify(); | 215 bool TryIntrinsify(); |
| 221 | 216 |
| 222 void GenerateCallRuntime(intptr_t token_pos, | 217 void GenerateCallRuntime(intptr_t token_pos, |
| 223 intptr_t deopt_id, | 218 intptr_t deopt_id, |
| 224 const RuntimeEntry& entry, | 219 const RuntimeEntry& entry, |
| 225 LocationSummary* locs); | 220 LocationSummary* locs); |
| 226 | 221 |
| 227 void GenerateCall(intptr_t token_pos, | 222 void GenerateCall(intptr_t token_pos, |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 // that should be used when deoptimizing we store it in this variable. | 518 // that should be used when deoptimizing we store it in this variable. |
| 524 // In future AddDeoptStub should be moved out of the instruction template. | 519 // In future AddDeoptStub should be moved out of the instruction template. |
| 525 Environment* pending_deoptimization_env_; | 520 Environment* pending_deoptimization_env_; |
| 526 | 521 |
| 527 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 522 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 528 }; | 523 }; |
| 529 | 524 |
| 530 } // namespace dart | 525 } // namespace dart |
| 531 | 526 |
| 532 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 527 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |