OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_COMPILER_CODE_GENERATOR_H_ | 5 #ifndef V8_COMPILER_CODE_GENERATOR_H_ |
6 #define V8_COMPILER_CODE_GENERATOR_H_ | 6 #define V8_COMPILER_CODE_GENERATOR_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 Linkage* linkage() const { return linkage_; } | 32 Linkage* linkage() const { return linkage_; } |
33 | 33 |
34 private: | 34 private: |
35 MacroAssembler* masm() { return &masm_; } | 35 MacroAssembler* masm() { return &masm_; } |
36 GapResolver* resolver() { return &resolver_; } | 36 GapResolver* resolver() { return &resolver_; } |
37 SafepointTableBuilder* safepoints() { return &safepoints_; } | 37 SafepointTableBuilder* safepoints() { return &safepoints_; } |
38 Zone* zone() const { return code()->zone(); } | 38 Zone* zone() const { return code()->zone(); } |
39 | 39 |
40 // Checks if {block} will appear directly after {current_block_} when | 40 // Checks if {block} will appear directly after {current_block_} when |
41 // assembling code, in which case, a fall-through can be used. | 41 // assembling code, in which case, a fall-through can be used. |
42 bool IsNextInAssemblyOrder(BasicBlock::RpoNumber block) const { | 42 bool IsNextInAssemblyOrder(BasicBlock::RpoNumber block) const; |
43 return current_block_.IsNext(block); | |
44 } | |
45 | 43 |
46 // Record a safepoint with the given pointer map. | 44 // Record a safepoint with the given pointer map. |
47 void RecordSafepoint(PointerMap* pointers, Safepoint::Kind kind, | 45 void RecordSafepoint(PointerMap* pointers, Safepoint::Kind kind, |
48 int arguments, Safepoint::DeoptMode deopt_mode); | 46 int arguments, Safepoint::DeoptMode deopt_mode); |
49 | 47 |
50 // Assemble code for the specified instruction. | 48 // Assemble code for the specified instruction. |
51 void AssembleInstruction(Instruction* instr); | 49 void AssembleInstruction(Instruction* instr); |
52 void AssembleSourcePosition(SourcePositionInstruction* instr); | 50 void AssembleSourcePosition(SourcePositionInstruction* instr); |
53 void AssembleGap(GapInstruction* gap); | 51 void AssembleGap(GapInstruction* gap); |
54 | 52 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 ZoneDeque<Handle<Object> > deoptimization_literals_; | 127 ZoneDeque<Handle<Object> > deoptimization_literals_; |
130 TranslationBuffer translations_; | 128 TranslationBuffer translations_; |
131 int last_lazy_deopt_pc_; | 129 int last_lazy_deopt_pc_; |
132 }; | 130 }; |
133 | 131 |
134 } // namespace compiler | 132 } // namespace compiler |
135 } // namespace internal | 133 } // namespace internal |
136 } // namespace v8 | 134 } // namespace v8 |
137 | 135 |
138 #endif // V8_COMPILER_CODE_GENERATOR_H | 136 #endif // V8_COMPILER_CODE_GENERATOR_H |
OLD | NEW |