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/mips/lithium-gap-resolver-mips.h" | 10 #include "src/mips/lithium-gap-resolver-mips.h" |
11 #include "src/mips/lithium-mips.h" | 11 #include "src/mips/lithium-mips.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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); | 357 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); |
358 void DoLoadKeyedFixedArray(LLoadKeyed* instr); | 358 void DoLoadKeyedFixedArray(LLoadKeyed* instr); |
359 void DoStoreKeyedExternalArray(LStoreKeyed* instr); | 359 void DoStoreKeyedExternalArray(LStoreKeyed* instr); |
360 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); | 360 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); |
361 void DoStoreKeyedFixedArray(LStoreKeyed* instr); | 361 void DoStoreKeyedFixedArray(LStoreKeyed* instr); |
362 | 362 |
363 template <class T> | 363 template <class T> |
364 void EmitVectorLoadICRegisters(T* instr); | 364 void EmitVectorLoadICRegisters(T* instr); |
365 | 365 |
366 ZoneList<LEnvironment*> deoptimizations_; | 366 ZoneList<LEnvironment*> deoptimizations_; |
367 ZoneList<Deoptimizer::JumpTableEntry> deopt_jump_table_; | 367 ZoneList<Deoptimizer::JumpTableEntry> jump_table_; |
368 ZoneList<Handle<Object> > deoptimization_literals_; | 368 ZoneList<Handle<Object> > deoptimization_literals_; |
369 int inlined_function_count_; | 369 int inlined_function_count_; |
370 Scope* const scope_; | 370 Scope* const scope_; |
371 TranslationBuffer translations_; | 371 TranslationBuffer translations_; |
372 ZoneList<LDeferredCode*> deferred_; | 372 ZoneList<LDeferredCode*> deferred_; |
373 int osr_pc_offset_; | 373 int osr_pc_offset_; |
374 bool frame_is_built_; | 374 bool frame_is_built_; |
375 | 375 |
376 // Builder that keeps track of safepoints in the code. The table | 376 // Builder that keeps track of safepoints in the code. The table |
377 // itself is emitted at the end of the generated code. | 377 // itself is emitted at the end of the generated code. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 LCodeGen* codegen_; | 440 LCodeGen* codegen_; |
441 Label entry_; | 441 Label entry_; |
442 Label exit_; | 442 Label exit_; |
443 Label* external_exit_; | 443 Label* external_exit_; |
444 int instruction_index_; | 444 int instruction_index_; |
445 }; | 445 }; |
446 | 446 |
447 } } // namespace v8::internal | 447 } } // namespace v8::internal |
448 | 448 |
449 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 449 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |