| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 }; | 137 }; |
| 139 | 138 |
| 140 bool is_unused() const { return status_ == UNUSED; } | 139 bool is_unused() const { return status_ == UNUSED; } |
| 141 bool is_generating() const { return status_ == GENERATING; } | 140 bool is_generating() const { return status_ == GENERATING; } |
| 142 bool is_done() const { return status_ == DONE; } | 141 bool is_done() const { return status_ == DONE; } |
| 143 bool is_aborted() const { return status_ == ABORTED; } | 142 bool is_aborted() const { return status_ == ABORTED; } |
| 144 | 143 |
| 145 StrictModeFlag strict_mode_flag() const { | 144 StrictModeFlag strict_mode_flag() const { |
| 146 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; | 145 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; |
| 147 } | 146 } |
| 148 bool dynamic_frame_alignment() const { return dynamic_frame_alignment_; } | |
| 149 void set_dynamic_frame_alignment(bool value) { | |
| 150 dynamic_frame_alignment_ = value; | |
| 151 } | |
| 152 | 147 |
| 153 LChunk* chunk() const { return chunk_; } | 148 LChunk* chunk() const { return chunk_; } |
| 154 Scope* scope() const { return scope_; } | 149 Scope* scope() const { return scope_; } |
| 155 HGraph* graph() const { return chunk_->graph(); } | 150 HGraph* graph() const { return chunk_->graph(); } |
| 156 | 151 |
| 157 int GetNextEmittedBlock(int block); | 152 int GetNextEmittedBlock(int block); |
| 158 | 153 |
| 159 void EmitClassOfTest(Label* if_true, | 154 void EmitClassOfTest(Label* if_true, |
| 160 Label* if_false, | 155 Label* if_false, |
| 161 Handle<String> class_name, | 156 Handle<String> class_name, |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 CompilationInfo* const info_; | 321 CompilationInfo* const info_; |
| 327 | 322 |
| 328 int current_block_; | 323 int current_block_; |
| 329 int current_instruction_; | 324 int current_instruction_; |
| 330 const ZoneList<LInstruction*>* instructions_; | 325 const ZoneList<LInstruction*>* instructions_; |
| 331 ZoneList<LEnvironment*> deoptimizations_; | 326 ZoneList<LEnvironment*> deoptimizations_; |
| 332 ZoneList<Handle<Object> > deoptimization_literals_; | 327 ZoneList<Handle<Object> > deoptimization_literals_; |
| 333 int inlined_function_count_; | 328 int inlined_function_count_; |
| 334 Scope* const scope_; | 329 Scope* const scope_; |
| 335 Status status_; | 330 Status status_; |
| 336 bool dynamic_frame_alignment_; | |
| 337 TranslationBuffer translations_; | 331 TranslationBuffer translations_; |
| 338 ZoneList<LDeferredCode*> deferred_; | 332 ZoneList<LDeferredCode*> deferred_; |
| 339 int osr_pc_offset_; | 333 int osr_pc_offset_; |
| 340 int last_lazy_deopt_pc_; | 334 int last_lazy_deopt_pc_; |
| 341 | 335 |
| 342 // Builder that keeps track of safepoints in the code. The table | 336 // Builder that keeps track of safepoints in the code. The table |
| 343 // itself is emitted at the end of the generated code. | 337 // itself is emitted at the end of the generated code. |
| 344 SafepointTableBuilder safepoints_; | 338 SafepointTableBuilder safepoints_; |
| 345 | 339 |
| 346 // Compiler from a set of parallel moves to a sequential list of moves. | 340 // 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... |
| 400 LCodeGen* codegen_; | 394 LCodeGen* codegen_; |
| 401 Label entry_; | 395 Label entry_; |
| 402 Label exit_; | 396 Label exit_; |
| 403 Label* external_exit_; | 397 Label* external_exit_; |
| 404 int instruction_index_; | 398 int instruction_index_; |
| 405 }; | 399 }; |
| 406 | 400 |
| 407 } } // namespace v8::internal | 401 } } // namespace v8::internal |
| 408 | 402 |
| 409 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 403 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |