| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 namespace v8 { | 39 namespace v8 { |
| 40 namespace internal { | 40 namespace internal { |
| 41 | 41 |
| 42 // Forward declarations. | 42 // Forward declarations. |
| 43 class LDeferredCode; | 43 class LDeferredCode; |
| 44 class SafepointGenerator; | 44 class SafepointGenerator; |
| 45 | 45 |
| 46 class LCodeGen BASE_EMBEDDED { | 46 class LCodeGen BASE_EMBEDDED { |
| 47 public: | 47 public: |
| 48 LCodeGen(LChunkBase* chunk, MacroAssembler* assembler, CompilationInfo* info) | 48 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) |
| 49 : zone_(info->zone()), | 49 : zone_(info->zone()), |
| 50 chunk_(static_cast<LChunk*>(chunk)), | 50 chunk_(static_cast<LPlatformChunk*>(chunk)), |
| 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, info->zone()), | 56 deoptimizations_(4, info->zone()), |
| 57 jump_table_(4, info->zone()), | 57 jump_table_(4, info->zone()), |
| 58 deoptimization_literals_(8, info->zone()), | 58 deoptimization_literals_(8, info->zone()), |
| 59 inlined_function_count_(0), | 59 inlined_function_count_(0), |
| 60 scope_(info->scope()), | 60 scope_(info->scope()), |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 133 |
| 134 bool is_unused() const { return status_ == UNUSED; } | 134 bool is_unused() const { return status_ == UNUSED; } |
| 135 bool is_generating() const { return status_ == GENERATING; } | 135 bool is_generating() const { return status_ == GENERATING; } |
| 136 bool is_done() const { return status_ == DONE; } | 136 bool is_done() const { return status_ == DONE; } |
| 137 bool is_aborted() const { return status_ == ABORTED; } | 137 bool is_aborted() const { return status_ == ABORTED; } |
| 138 | 138 |
| 139 StrictModeFlag strict_mode_flag() const { | 139 StrictModeFlag strict_mode_flag() const { |
| 140 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; | 140 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; |
| 141 } | 141 } |
| 142 | 142 |
| 143 LChunk* chunk() const { return chunk_; } | 143 LPlatformChunk* chunk() const { return chunk_; } |
| 144 Scope* scope() const { return scope_; } | 144 Scope* scope() const { return scope_; } |
| 145 HGraph* graph() const { return chunk_->graph(); } | 145 HGraph* graph() const { return chunk_->graph(); } |
| 146 | 146 |
| 147 int GetNextEmittedBlock(int block); | 147 int GetNextEmittedBlock(int block); |
| 148 | 148 |
| 149 void EmitClassOfTest(Label* if_true, | 149 void EmitClassOfTest(Label* if_true, |
| 150 Label* if_false, | 150 Label* if_false, |
| 151 Handle<String> class_name, | 151 Handle<String> class_name, |
| 152 Register input, | 152 Register input, |
| 153 Register temporary, | 153 Register temporary, |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 explicit inline JumpTableEntry(Address entry) | 318 explicit inline JumpTableEntry(Address entry) |
| 319 : label(), | 319 : label(), |
| 320 address(entry) { } | 320 address(entry) { } |
| 321 Label label; | 321 Label label; |
| 322 Address address; | 322 Address address; |
| 323 }; | 323 }; |
| 324 | 324 |
| 325 void EnsureSpaceForLazyDeopt(int space_needed); | 325 void EnsureSpaceForLazyDeopt(int space_needed); |
| 326 | 326 |
| 327 Zone* zone_; | 327 Zone* zone_; |
| 328 LChunk* const chunk_; | 328 LPlatformChunk* const chunk_; |
| 329 MacroAssembler* const masm_; | 329 MacroAssembler* const masm_; |
| 330 CompilationInfo* const info_; | 330 CompilationInfo* const info_; |
| 331 | 331 |
| 332 int current_block_; | 332 int current_block_; |
| 333 int current_instruction_; | 333 int current_instruction_; |
| 334 const ZoneList<LInstruction*>* instructions_; | 334 const ZoneList<LInstruction*>* instructions_; |
| 335 ZoneList<LEnvironment*> deoptimizations_; | 335 ZoneList<LEnvironment*> deoptimizations_; |
| 336 ZoneList<JumpTableEntry> jump_table_; | 336 ZoneList<JumpTableEntry> jump_table_; |
| 337 ZoneList<Handle<Object> > deoptimization_literals_; | 337 ZoneList<Handle<Object> > deoptimization_literals_; |
| 338 int inlined_function_count_; | 338 int inlined_function_count_; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 LCodeGen* codegen_; | 404 LCodeGen* codegen_; |
| 405 Label entry_; | 405 Label entry_; |
| 406 Label exit_; | 406 Label exit_; |
| 407 Label* external_exit_; | 407 Label* external_exit_; |
| 408 int instruction_index_; | 408 int instruction_index_; |
| 409 }; | 409 }; |
| 410 | 410 |
| 411 } } // namespace v8::internal | 411 } } // namespace v8::internal |
| 412 | 412 |
| 413 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 413 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |