| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 class LCodeGen BASE_EMBEDDED { | 46 class LCodeGen BASE_EMBEDDED { |
| 47 public: | 47 public: |
| 48 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) | 48 LCodeGen(LChunk* chunk, MacroAssembler* assembler, CompilationInfo* info) |
| 49 : chunk_(chunk), | 49 : chunk_(chunk), |
| 50 masm_(assembler), | 50 masm_(assembler), |
| 51 info_(info), | 51 info_(info), |
| 52 current_block_(-1), | 52 current_block_(-1), |
| 53 current_instruction_(-1), | 53 current_instruction_(-1), |
| 54 instructions_(chunk->instructions()), | 54 instructions_(chunk->instructions()), |
| 55 deoptimizations_(4), | 55 deoptimizations_(info->zone(), 4), |
| 56 jump_table_(4), | 56 jump_table_(info->zone(), 4), |
| 57 deoptimization_literals_(8), | 57 deoptimization_literals_(info->zone(), 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 deferred_(8), | 61 deferred_(info->zone(), 8), |
| 62 osr_pc_offset_(-1), | 62 osr_pc_offset_(-1), |
| 63 resolver_(this), | 63 resolver_(this), |
| 64 expected_safepoint_kind_(Safepoint::kSimple) { | 64 expected_safepoint_kind_(Safepoint::kSimple) { |
| 65 PopulateDeoptimizationLiteralsWithInlinedFunctions(); | 65 PopulateDeoptimizationLiteralsWithInlinedFunctions(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 // Simple accessors. | 68 // Simple accessors. |
| 69 MacroAssembler* masm() const { return masm_; } | 69 MacroAssembler* masm() const { return masm_; } |
| 70 CompilationInfo* info() const { return info_; } | 70 CompilationInfo* info() const { return info_; } |
| 71 Isolate* isolate() const { return info_->isolate(); } | 71 Isolate* isolate() const { return info_->isolate(); } |
| 72 Factory* factory() const { return isolate()->factory(); } | 72 Factory* factory() const { return isolate()->factory(); } |
| 73 Heap* heap() const { return isolate()->heap(); } | 73 Heap* heap() const { return isolate()->heap(); } |
| 74 Zone* zone() const { return isolate()->zone(); } |
| 74 | 75 |
| 75 // Support for converting LOperands to assembler types. | 76 // Support for converting LOperands to assembler types. |
| 76 Register ToRegister(LOperand* op) const; | 77 Register ToRegister(LOperand* op) const; |
| 77 XMMRegister ToDoubleRegister(LOperand* op) const; | 78 XMMRegister ToDoubleRegister(LOperand* op) const; |
| 78 bool IsInteger32Constant(LConstantOperand* op) const; | 79 bool IsInteger32Constant(LConstantOperand* op) const; |
| 79 int ToInteger32(LConstantOperand* op) const; | 80 int ToInteger32(LConstantOperand* op) const; |
| 80 bool IsTaggedConstant(LConstantOperand* op) const; | 81 bool IsTaggedConstant(LConstantOperand* op) const; |
| 81 Handle<Object> ToHandle(LConstantOperand* op) const; | 82 Handle<Object> ToHandle(LConstantOperand* op) const; |
| 82 Operand ToOperand(LOperand* op) const; | 83 Operand ToOperand(LOperand* op) const; |
| 83 | 84 |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 private: | 363 private: |
| 363 LCodeGen* codegen_; | 364 LCodeGen* codegen_; |
| 364 Label entry_; | 365 Label entry_; |
| 365 Label exit_; | 366 Label exit_; |
| 366 Label* external_exit_; | 367 Label* external_exit_; |
| 367 }; | 368 }; |
| 368 | 369 |
| 369 } } // namespace v8::internal | 370 } } // namespace v8::internal |
| 370 | 371 |
| 371 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 372 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |