OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 | 571 |
572 // Methods used to indicate which source code is generated for. Source | 572 // Methods used to indicate which source code is generated for. Source |
573 // positions are collected by the assembler and emitted with the relocation | 573 // positions are collected by the assembler and emitted with the relocation |
574 // information. | 574 // information. |
575 void CodeForFunctionPosition(FunctionLiteral* fun); | 575 void CodeForFunctionPosition(FunctionLiteral* fun); |
576 void CodeForReturnPosition(FunctionLiteral* fun); | 576 void CodeForReturnPosition(FunctionLiteral* fun); |
577 void CodeForStatementPosition(Node* node); | 577 void CodeForStatementPosition(Node* node); |
578 void CodeForSourcePosition(int pos); | 578 void CodeForSourcePosition(int pos); |
579 | 579 |
580 #ifdef DEBUG | 580 #ifdef DEBUG |
581 // True if the registers are valid for entry to a block. There should be | 581 // True if the registers are valid for entry to a block. There should |
582 // no frame-external references to eax, ebx, ecx, edx, or edi. | 582 // be no frame-external references to (non-reserved) registers. |
583 bool HasValidEntryRegisters(); | 583 bool HasValidEntryRegisters(); |
584 #endif | 584 #endif |
585 | 585 |
586 bool is_eval_; // Tells whether code is generated for eval. | 586 bool is_eval_; // Tells whether code is generated for eval. |
587 Handle<Script> script_; | 587 Handle<Script> script_; |
588 List<DeferredCode*> deferred_; | 588 ZoneList<DeferredCode*> deferred_; |
589 | 589 |
590 // Assembler | 590 // Assembler |
591 MacroAssembler* masm_; // to generate code | 591 MacroAssembler* masm_; // to generate code |
592 | 592 |
593 // Code generation state | 593 // Code generation state |
594 Scope* scope_; | 594 Scope* scope_; |
595 VirtualFrame* frame_; | 595 VirtualFrame* frame_; |
596 RegisterAllocator* allocator_; | 596 RegisterAllocator* allocator_; |
597 CodeGenState* state_; | 597 CodeGenState* state_; |
598 int loop_nesting_; | 598 int loop_nesting_; |
(...skipping 20 matching lines...) Expand all Loading... |
619 friend class Reference; | 619 friend class Reference; |
620 friend class Result; | 620 friend class Result; |
621 | 621 |
622 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 622 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
623 }; | 623 }; |
624 | 624 |
625 | 625 |
626 } } // namespace v8::internal | 626 } } // namespace v8::internal |
627 | 627 |
628 #endif // V8_X64_CODEGEN_X64_H_ | 628 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |