OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 | 573 |
574 // Methods used to indicate which source code is generated for. Source | 574 // Methods used to indicate which source code is generated for. Source |
575 // positions are collected by the assembler and emitted with the relocation | 575 // positions are collected by the assembler and emitted with the relocation |
576 // information. | 576 // information. |
577 void CodeForFunctionPosition(FunctionLiteral* fun); | 577 void CodeForFunctionPosition(FunctionLiteral* fun); |
578 void CodeForReturnPosition(FunctionLiteral* fun); | 578 void CodeForReturnPosition(FunctionLiteral* fun); |
579 void CodeForStatementPosition(Node* node); | 579 void CodeForStatementPosition(Node* node); |
580 void CodeForSourcePosition(int pos); | 580 void CodeForSourcePosition(int pos); |
581 | 581 |
582 #ifdef DEBUG | 582 #ifdef DEBUG |
583 // True if the registers are valid for entry to a block. There should be | 583 // True if the registers are valid for entry to a block. There should |
584 // no frame-external references to eax, ebx, ecx, edx, or edi. | 584 // be no frame-external references to (non-reserved) registers. |
585 bool HasValidEntryRegisters(); | 585 bool HasValidEntryRegisters(); |
586 #endif | 586 #endif |
587 | 587 |
588 bool is_eval_; // Tells whether code is generated for eval. | 588 bool is_eval_; // Tells whether code is generated for eval. |
589 Handle<Script> script_; | 589 Handle<Script> script_; |
590 ZoneList<DeferredCode*> deferred_; | 590 ZoneList<DeferredCode*> deferred_; |
591 | 591 |
592 // Assembler | 592 // Assembler |
593 MacroAssembler* masm_; // to generate code | 593 MacroAssembler* masm_; // to generate code |
594 | 594 |
(...skipping 28 matching lines...) Expand all Loading... |
623 | 623 |
624 friend class CodeGeneratorPatcher; // Used in test-log-ia32.cc | 624 friend class CodeGeneratorPatcher; // Used in test-log-ia32.cc |
625 | 625 |
626 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 626 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
627 }; | 627 }; |
628 | 628 |
629 | 629 |
630 } } // namespace v8::internal | 630 } } // namespace v8::internal |
631 | 631 |
632 #endif // V8_IA32_CODEGEN_IA32_H_ | 632 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |