| 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 // positions are collected by the assembler and emitted with the relocation | 441 // positions are collected by the assembler and emitted with the relocation |
| 442 // information. | 442 // information. |
| 443 void CodeForStatement(Node* node); | 443 void CodeForStatement(Node* node); |
| 444 void CodeForSourcePosition(int pos); | 444 void CodeForSourcePosition(int pos); |
| 445 | 445 |
| 446 // Is the given jump target the actual (ie, non-shadowed) function return | 446 // Is the given jump target the actual (ie, non-shadowed) function return |
| 447 // target? | 447 // target? |
| 448 bool IsActualFunctionReturn(JumpTarget* target); | 448 bool IsActualFunctionReturn(JumpTarget* target); |
| 449 | 449 |
| 450 bool is_eval_; // Tells whether code is generated for eval. | 450 bool is_eval_; // Tells whether code is generated for eval. |
| 451 |
| 452 #ifdef DEBUG |
| 453 // True if the registers are valid for entry to a block. There should be |
| 454 // no frame-external references to eax, ebx, ecx, edx, or edi. |
| 455 bool HasValidEntryRegisters(); |
| 456 #endif |
| 457 |
| 451 Handle<Script> script_; | 458 Handle<Script> script_; |
| 452 List<DeferredCode*> deferred_; | 459 List<DeferredCode*> deferred_; |
| 453 | 460 |
| 454 // Assembler | 461 // Assembler |
| 455 MacroAssembler* masm_; // to generate code | 462 MacroAssembler* masm_; // to generate code |
| 456 | 463 |
| 457 // Code generation state | 464 // Code generation state |
| 458 Scope* scope_; | 465 Scope* scope_; |
| 459 VirtualFrame* frame_; | 466 VirtualFrame* frame_; |
| 460 RegisterAllocator* allocator_; | 467 RegisterAllocator* allocator_; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 cgen_->set_in_spilled_code(false); | 499 cgen_->set_in_spilled_code(false); |
| 493 GetValue(typeof_state); | 500 GetValue(typeof_state); |
| 494 cgen_->frame()->SpillAll(); | 501 cgen_->frame()->SpillAll(); |
| 495 cgen_->set_in_spilled_code(true); | 502 cgen_->set_in_spilled_code(true); |
| 496 } | 503 } |
| 497 | 504 |
| 498 | 505 |
| 499 } } // namespace v8::internal | 506 } } // namespace v8::internal |
| 500 | 507 |
| 501 #endif // V8_CODEGEN_IA32_H_ | 508 #endif // V8_CODEGEN_IA32_H_ |
| OLD | NEW |