| 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 | 466 |
| 467 // Returns 'sorted' array in decreasing count order. | 467 // Returns 'sorted' array in decreasing count order. |
| 468 static void SortICDataByCount(const ICData& ic_data, | 468 static void SortICDataByCount(const ICData& ic_data, |
| 469 GrowableArray<CidTarget>* sorted); | 469 GrowableArray<CidTarget>* sorted); |
| 470 | 470 |
| 471 private: | 471 private: |
| 472 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. | 472 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. |
| 473 | 473 |
| 474 void EmitFrameEntry(); | 474 void EmitFrameEntry(); |
| 475 | 475 |
| 476 void EmitTrySyncMove(intptr_t dest_offset, Location loc, bool* push_emitted); |
| 477 |
| 476 void AddStaticCallTarget(const Function& function); | 478 void AddStaticCallTarget(const Function& function); |
| 477 | 479 |
| 478 void GenerateDeferredCode(); | 480 void GenerateDeferredCode(); |
| 479 | 481 |
| 480 void EmitInstructionPrologue(Instruction* instr); | 482 void EmitInstructionPrologue(Instruction* instr); |
| 481 void EmitInstructionEpilogue(Instruction* instr); | 483 void EmitInstructionEpilogue(Instruction* instr); |
| 482 | 484 |
| 483 // Emit code to load a Value into register 'dst'. | 485 // Emit code to load a Value into register 'dst'. |
| 484 void LoadValue(Register dst, Value* value); | 486 void LoadValue(Register dst, Value* value); |
| 485 | 487 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 // that should be used when deoptimizing we store it in this variable. | 606 // that should be used when deoptimizing we store it in this variable. |
| 605 // In future AddDeoptStub should be moved out of the instruction template. | 607 // In future AddDeoptStub should be moved out of the instruction template. |
| 606 Environment* pending_deoptimization_env_; | 608 Environment* pending_deoptimization_env_; |
| 607 | 609 |
| 608 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 610 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 609 }; | 611 }; |
| 610 | 612 |
| 611 } // namespace dart | 613 } // namespace dart |
| 612 | 614 |
| 613 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 615 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |