OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 masm_(assembler), | 51 masm_(assembler), |
52 info_(info), | 52 info_(info), |
53 current_block_(-1), | 53 current_block_(-1), |
54 current_instruction_(-1), | 54 current_instruction_(-1), |
55 instructions_(chunk->instructions()), | 55 instructions_(chunk->instructions()), |
56 deoptimizations_(4), | 56 deoptimizations_(4), |
57 deoptimization_literals_(8), | 57 deoptimization_literals_(8), |
58 inlined_function_count_(0), | 58 inlined_function_count_(0), |
59 scope_(info->scope()), | 59 scope_(info->scope()), |
60 status_(UNUSED), | 60 status_(UNUSED), |
61 dynamic_frame_alignment_(false), | |
62 deferred_(8), | 61 deferred_(8), |
63 osr_pc_offset_(-1), | 62 osr_pc_offset_(-1), |
64 last_lazy_deopt_pc_(0), | 63 last_lazy_deopt_pc_(0), |
65 resolver_(this), | 64 resolver_(this), |
66 expected_safepoint_kind_(Safepoint::kSimple) { | 65 expected_safepoint_kind_(Safepoint::kSimple) { |
67 PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 66 PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
68 } | 67 } |
69 | 68 |
70 // Simple accessors. | 69 // Simple accessors. |
71 MacroAssembler* masm() const { return masm_; } | 70 MacroAssembler* masm() const { return masm_; } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 }; | 135 }; |
137 | 136 |
138 bool is_unused() const { return status_ == UNUSED; } | 137 bool is_unused() const { return status_ == UNUSED; } |
139 bool is_generating() const { return status_ == GENERATING; } | 138 bool is_generating() const { return status_ == GENERATING; } |
140 bool is_done() const { return status_ == DONE; } | 139 bool is_done() const { return status_ == DONE; } |
141 bool is_aborted() const { return status_ == ABORTED; } | 140 bool is_aborted() const { return status_ == ABORTED; } |
142 | 141 |
143 StrictModeFlag strict_mode_flag() const { | 142 StrictModeFlag strict_mode_flag() const { |
144 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; | 143 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; |
145 } | 144 } |
146 bool dynamic_frame_alignment() const { return dynamic_frame_alignment_; } | |
147 void set_dynamic_frame_alignment(bool value) { | |
148 dynamic_frame_alignment_ = value; | |
149 } | |
150 | 145 |
151 LChunk* chunk() const { return chunk_; } | 146 LChunk* chunk() const { return chunk_; } |
152 Scope* scope() const { return scope_; } | 147 Scope* scope() const { return scope_; } |
153 HGraph* graph() const { return chunk_->graph(); } | 148 HGraph* graph() const { return chunk_->graph(); } |
154 | 149 |
155 int GetNextEmittedBlock(int block); | 150 int GetNextEmittedBlock(int block); |
156 | 151 |
157 void EmitClassOfTest(Label* if_true, | 152 void EmitClassOfTest(Label* if_true, |
158 Label* if_false, | 153 Label* if_false, |
159 Handle<String> class_name, | 154 Handle<String> class_name, |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 CompilationInfo* const info_; | 319 CompilationInfo* const info_; |
325 | 320 |
326 int current_block_; | 321 int current_block_; |
327 int current_instruction_; | 322 int current_instruction_; |
328 const ZoneList<LInstruction*>* instructions_; | 323 const ZoneList<LInstruction*>* instructions_; |
329 ZoneList<LEnvironment*> deoptimizations_; | 324 ZoneList<LEnvironment*> deoptimizations_; |
330 ZoneList<Handle<Object> > deoptimization_literals_; | 325 ZoneList<Handle<Object> > deoptimization_literals_; |
331 int inlined_function_count_; | 326 int inlined_function_count_; |
332 Scope* const scope_; | 327 Scope* const scope_; |
333 Status status_; | 328 Status status_; |
334 bool dynamic_frame_alignment_; | |
335 TranslationBuffer translations_; | 329 TranslationBuffer translations_; |
336 ZoneList<LDeferredCode*> deferred_; | 330 ZoneList<LDeferredCode*> deferred_; |
337 int osr_pc_offset_; | 331 int osr_pc_offset_; |
338 int last_lazy_deopt_pc_; | 332 int last_lazy_deopt_pc_; |
339 | 333 |
340 // Builder that keeps track of safepoints in the code. The table | 334 // Builder that keeps track of safepoints in the code. The table |
341 // itself is emitted at the end of the generated code. | 335 // itself is emitted at the end of the generated code. |
342 SafepointTableBuilder safepoints_; | 336 SafepointTableBuilder safepoints_; |
343 | 337 |
344 // Compiler from a set of parallel moves to a sequential list of moves. | 338 // Compiler from a set of parallel moves to a sequential list of moves. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 LCodeGen* codegen_; | 392 LCodeGen* codegen_; |
399 Label entry_; | 393 Label entry_; |
400 Label exit_; | 394 Label exit_; |
401 Label* external_exit_; | 395 Label* external_exit_; |
402 int instruction_index_; | 396 int instruction_index_; |
403 }; | 397 }; |
404 | 398 |
405 } } // namespace v8::internal | 399 } } // namespace v8::internal |
406 | 400 |
407 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 401 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |