| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| 6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| 7 | 7 |
| 8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
| 9 #include "src/lithium-codegen.h" | 9 #include "src/lithium-codegen.h" |
| 10 #include "src/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/mips64/lithium-gap-resolver-mips64.h" |
| 11 #include "src/mips64/lithium-mips64.h" | 11 #include "src/mips64/lithium-mips64.h" |
| 12 #include "src/safepoint-table.h" | 12 #include "src/safepoint-table.h" |
| 13 #include "src/scopes.h" | 13 #include "src/scopes.h" |
| 14 #include "src/utils.h" | 14 #include "src/utils.h" |
| 15 | 15 |
| 16 namespace v8 { | 16 namespace v8 { |
| 17 namespace internal { | 17 namespace internal { |
| 18 | 18 |
| 19 // Forward declarations. | 19 // Forward declarations. |
| 20 class LDeferredCode; | 20 class LDeferredCode; |
| 21 class SafepointGenerator; | 21 class SafepointGenerator; |
| 22 | 22 |
| 23 class LCodeGen: public LCodeGenBase { | 23 class LCodeGen: public LCodeGenBase { |
| 24 public: | 24 public: |
| 25 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) | 25 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) |
| 26 : LCodeGenBase(chunk, assembler, info), | 26 : LCodeGenBase(chunk, assembler, info), |
| 27 deoptimizations_(4, info->zone()), | 27 deoptimizations_(4, info->zone()), |
| 28 deopt_jump_table_(4, info->zone()), | 28 jump_table_(4, info->zone()), |
| 29 deoptimization_literals_(8, info->zone()), | 29 deoptimization_literals_(8, info->zone()), |
| 30 inlined_function_count_(0), | 30 inlined_function_count_(0), |
| 31 scope_(info->scope()), | 31 scope_(info->scope()), |
| 32 translations_(info->zone()), | 32 translations_(info->zone()), |
| 33 deferred_(8, info->zone()), | 33 deferred_(8, info->zone()), |
| 34 osr_pc_offset_(-1), | 34 osr_pc_offset_(-1), |
| 35 frame_is_built_(false), | 35 frame_is_built_(false), |
| 36 safepoints_(info->zone()), | 36 safepoints_(info->zone()), |
| 37 resolver_(this), | 37 resolver_(this), |
| 38 expected_safepoint_kind_(Safepoint::kSimple) { | 38 expected_safepoint_kind_(Safepoint::kSimple) { |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); | 358 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); |
| 359 void DoLoadKeyedFixedArray(LLoadKeyed* instr); | 359 void DoLoadKeyedFixedArray(LLoadKeyed* instr); |
| 360 void DoStoreKeyedExternalArray(LStoreKeyed* instr); | 360 void DoStoreKeyedExternalArray(LStoreKeyed* instr); |
| 361 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); | 361 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); |
| 362 void DoStoreKeyedFixedArray(LStoreKeyed* instr); | 362 void DoStoreKeyedFixedArray(LStoreKeyed* instr); |
| 363 | 363 |
| 364 template <class T> | 364 template <class T> |
| 365 void EmitVectorLoadICRegisters(T* instr); | 365 void EmitVectorLoadICRegisters(T* instr); |
| 366 | 366 |
| 367 ZoneList<LEnvironment*> deoptimizations_; | 367 ZoneList<LEnvironment*> deoptimizations_; |
| 368 ZoneList<Deoptimizer::JumpTableEntry> deopt_jump_table_; | 368 ZoneList<Deoptimizer::JumpTableEntry> jump_table_; |
| 369 ZoneList<Handle<Object> > deoptimization_literals_; | 369 ZoneList<Handle<Object> > deoptimization_literals_; |
| 370 int inlined_function_count_; | 370 int inlined_function_count_; |
| 371 Scope* const scope_; | 371 Scope* const scope_; |
| 372 TranslationBuffer translations_; | 372 TranslationBuffer translations_; |
| 373 ZoneList<LDeferredCode*> deferred_; | 373 ZoneList<LDeferredCode*> deferred_; |
| 374 int osr_pc_offset_; | 374 int osr_pc_offset_; |
| 375 bool frame_is_built_; | 375 bool frame_is_built_; |
| 376 | 376 |
| 377 // Builder that keeps track of safepoints in the code. The table | 377 // Builder that keeps track of safepoints in the code. The table |
| 378 // itself is emitted at the end of the generated code. | 378 // itself is emitted at the end of the generated code. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 LCodeGen* codegen_; | 441 LCodeGen* codegen_; |
| 442 Label entry_; | 442 Label entry_; |
| 443 Label exit_; | 443 Label exit_; |
| 444 Label* external_exit_; | 444 Label* external_exit_; |
| 445 int instruction_index_; | 445 int instruction_index_; |
| 446 }; | 446 }; |
| 447 | 447 |
| 448 } } // namespace v8::internal | 448 } } // namespace v8::internal |
| 449 | 449 |
| 450 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 450 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| OLD | NEW |