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 | |
478 void AddStaticCallTarget(const Function& function); | 476 void AddStaticCallTarget(const Function& function); |
479 | 477 |
480 void GenerateDeferredCode(); | 478 void GenerateDeferredCode(); |
481 | 479 |
482 void EmitInstructionPrologue(Instruction* instr); | 480 void EmitInstructionPrologue(Instruction* instr); |
483 void EmitInstructionEpilogue(Instruction* instr); | 481 void EmitInstructionEpilogue(Instruction* instr); |
484 | 482 |
485 // Emit code to load a Value into register 'dst'. | 483 // Emit code to load a Value into register 'dst'. |
486 void LoadValue(Register dst, Value* value); | 484 void LoadValue(Register dst, Value* value); |
487 | 485 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 // that should be used when deoptimizing we store it in this variable. | 604 // that should be used when deoptimizing we store it in this variable. |
607 // In future AddDeoptStub should be moved out of the instruction template. | 605 // In future AddDeoptStub should be moved out of the instruction template. |
608 Environment* pending_deoptimization_env_; | 606 Environment* pending_deoptimization_env_; |
609 | 607 |
610 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 608 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
611 }; | 609 }; |
612 | 610 |
613 } // namespace dart | 611 } // namespace dart |
614 | 612 |
615 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 613 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
OLD | NEW |