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_ARM_LITHIUM_CODEGEN_ARM_H_ | 5 #ifndef V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
6 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 6 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
7 | 7 |
8 #include "src/arm/lithium-arm.h" | 8 #include "src/arm/lithium-arm.h" |
9 | 9 |
10 #include "src/arm/lithium-gap-resolver-arm.h" | 10 #include "src/arm/lithium-gap-resolver-arm.h" |
11 #include "src/deoptimizer.h" | 11 #include "src/deoptimizer.h" |
12 #include "src/lithium-codegen.h" | 12 #include "src/lithium-codegen.h" |
13 #include "src/safepoint-table.h" | 13 #include "src/safepoint-table.h" |
14 #include "src/scopes.h" | 14 #include "src/scopes.h" |
15 #include "src/utils.h" | 15 #include "src/utils.h" |
16 | 16 |
17 namespace v8 { | 17 namespace v8 { |
18 namespace internal { | 18 namespace internal { |
19 | 19 |
20 // Forward declarations. | 20 // Forward declarations. |
21 class LDeferredCode; | 21 class LDeferredCode; |
22 class SafepointGenerator; | 22 class SafepointGenerator; |
23 | 23 |
24 class LCodeGen: public LCodeGenBase { | 24 class LCodeGen: public LCodeGenBase { |
25 public: | 25 public: |
26 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) | 26 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) |
27 : LCodeGenBase(chunk, assembler, info), | 27 : LCodeGenBase(chunk, assembler, info), |
28 deoptimizations_(4, info->zone()), | 28 deoptimizations_(4, info->zone()), |
29 deopt_jump_table_(4, info->zone()), | 29 jump_table_(4, info->zone()), |
30 deoptimization_literals_(8, info->zone()), | 30 deoptimization_literals_(8, info->zone()), |
31 inlined_function_count_(0), | 31 inlined_function_count_(0), |
32 scope_(info->scope()), | 32 scope_(info->scope()), |
33 translations_(info->zone()), | 33 translations_(info->zone()), |
34 deferred_(8, info->zone()), | 34 deferred_(8, info->zone()), |
35 osr_pc_offset_(-1), | 35 osr_pc_offset_(-1), |
36 frame_is_built_(false), | 36 frame_is_built_(false), |
37 safepoints_(info->zone()), | 37 safepoints_(info->zone()), |
38 resolver_(this), | 38 resolver_(this), |
39 expected_safepoint_kind_(Safepoint::kSimple) { | 39 expected_safepoint_kind_(Safepoint::kSimple) { |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); | 325 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); |
326 void DoLoadKeyedFixedArray(LLoadKeyed* instr); | 326 void DoLoadKeyedFixedArray(LLoadKeyed* instr); |
327 void DoStoreKeyedExternalArray(LStoreKeyed* instr); | 327 void DoStoreKeyedExternalArray(LStoreKeyed* instr); |
328 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); | 328 void DoStoreKeyedFixedDoubleArray(LStoreKeyed* instr); |
329 void DoStoreKeyedFixedArray(LStoreKeyed* instr); | 329 void DoStoreKeyedFixedArray(LStoreKeyed* instr); |
330 | 330 |
331 template <class T> | 331 template <class T> |
332 void EmitVectorLoadICRegisters(T* instr); | 332 void EmitVectorLoadICRegisters(T* instr); |
333 | 333 |
334 ZoneList<LEnvironment*> deoptimizations_; | 334 ZoneList<LEnvironment*> deoptimizations_; |
335 ZoneList<Deoptimizer::JumpTableEntry> deopt_jump_table_; | 335 ZoneList<Deoptimizer::JumpTableEntry> jump_table_; |
336 ZoneList<Handle<Object> > deoptimization_literals_; | 336 ZoneList<Handle<Object> > deoptimization_literals_; |
337 int inlined_function_count_; | 337 int inlined_function_count_; |
338 Scope* const scope_; | 338 Scope* const scope_; |
339 TranslationBuffer translations_; | 339 TranslationBuffer translations_; |
340 ZoneList<LDeferredCode*> deferred_; | 340 ZoneList<LDeferredCode*> deferred_; |
341 int osr_pc_offset_; | 341 int osr_pc_offset_; |
342 bool frame_is_built_; | 342 bool frame_is_built_; |
343 | 343 |
344 // Builder that keeps track of safepoints in the code. The table | 344 // Builder that keeps track of safepoints in the code. The table |
345 // itself is emitted at the end of the generated code. | 345 // itself is emitted at the end of the generated code. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 LCodeGen* codegen_; | 403 LCodeGen* codegen_; |
404 Label entry_; | 404 Label entry_; |
405 Label exit_; | 405 Label exit_; |
406 Label* external_exit_; | 406 Label* external_exit_; |
407 int instruction_index_; | 407 int instruction_index_; |
408 }; | 408 }; |
409 | 409 |
410 } } // namespace v8::internal | 410 } } // namespace v8::internal |
411 | 411 |
412 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 412 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |