| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 278 |
| 279 void CompileGraph(); | 279 void CompileGraph(); |
| 280 | 280 |
| 281 void VisitBlocks(); | 281 void VisitBlocks(); |
| 282 | 282 |
| 283 // Bail out of the flow graph compiler. Does not return to the caller. | 283 // Bail out of the flow graph compiler. Does not return to the caller. |
| 284 void Bailout(const char* reason); | 284 void Bailout(const char* reason); |
| 285 | 285 |
| 286 void TryIntrinsify(); | 286 void TryIntrinsify(); |
| 287 | 287 |
| 288 void GenerateCallRuntime(intptr_t token_pos, | 288 void GenerateRuntimeCall(intptr_t token_pos, |
| 289 intptr_t deopt_id, | 289 intptr_t deopt_id, |
| 290 const RuntimeEntry& entry, | 290 const RuntimeEntry& entry, |
| 291 intptr_t argument_count, | 291 intptr_t argument_count, |
| 292 LocationSummary* locs); | 292 LocationSummary* locs); |
| 293 | 293 |
| 294 void GenerateCall(intptr_t token_pos, | 294 void GenerateCall(intptr_t token_pos, |
| 295 const ExternalLabel* label, | 295 const ExternalLabel* label, |
| 296 PcDescriptors::Kind kind, | 296 PcDescriptors::Kind kind, |
| 297 LocationSummary* locs); | 297 LocationSummary* locs); |
| 298 | 298 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 void FinalizeComments(const Code& code); | 427 void FinalizeComments(const Code& code); |
| 428 void FinalizeStaticCallTargetsTable(const Code& code); | 428 void FinalizeStaticCallTargetsTable(const Code& code); |
| 429 | 429 |
| 430 const Class& double_class() const { return double_class_; } | 430 const Class& double_class() const { return double_class_; } |
| 431 const Class& float32x4_class() const { return float32x4_class_; } | 431 const Class& float32x4_class() const { return float32x4_class_; } |
| 432 const Class& uint32x4_class() const { return uint32x4_class_; } | 432 const Class& uint32x4_class() const { return uint32x4_class_; } |
| 433 | 433 |
| 434 void SaveLiveRegisters(LocationSummary* locs); | 434 void SaveLiveRegisters(LocationSummary* locs); |
| 435 void RestoreLiveRegisters(LocationSummary* locs); | 435 void RestoreLiveRegisters(LocationSummary* locs); |
| 436 | 436 |
| 437 Environment* SlowPathEnvironmentFor(Instruction* instruction); |
| 438 |
| 437 // Returns true if the compiled function has a finally clause. | 439 // Returns true if the compiled function has a finally clause. |
| 438 bool HasFinally() const; | 440 bool HasFinally() const; |
| 439 | 441 |
| 440 intptr_t CurrentTryIndex() const { | 442 intptr_t CurrentTryIndex() const { |
| 441 if (current_block_ == NULL) { | 443 if (current_block_ == NULL) { |
| 442 return CatchClauseNode::kInvalidTryIndex; | 444 return CatchClauseNode::kInvalidTryIndex; |
| 443 } | 445 } |
| 444 return current_block_->try_index(); | 446 return current_block_->try_index(); |
| 445 } | 447 } |
| 446 | 448 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 // that should be used when deoptimizing we store it in this variable. | 608 // that should be used when deoptimizing we store it in this variable. |
| 607 // In future AddDeoptStub should be moved out of the instruction template. | 609 // In future AddDeoptStub should be moved out of the instruction template. |
| 608 Environment* pending_deoptimization_env_; | 610 Environment* pending_deoptimization_env_; |
| 609 | 611 |
| 610 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 612 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 611 }; | 613 }; |
| 612 | 614 |
| 613 } // namespace dart | 615 } // namespace dart |
| 614 | 616 |
| 615 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 617 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |