| 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 int default_index); | 455 int default_index); |
| 456 | 456 |
| 457 // Fast support for constant-Smi switches. Tests whether switch statement | 457 // Fast support for constant-Smi switches. Tests whether switch statement |
| 458 // permits optimization and calls GenerateFastCaseSwitch if it does. | 458 // permits optimization and calls GenerateFastCaseSwitch if it does. |
| 459 // Returns true if the fast-case switch was generated, and false if not. | 459 // Returns true if the fast-case switch was generated, and false if not. |
| 460 bool TryGenerateFastCaseSwitchStatement(SwitchStatement* node); | 460 bool TryGenerateFastCaseSwitchStatement(SwitchStatement* node); |
| 461 | 461 |
| 462 // Methods used to indicate which source code is generated for. Source | 462 // Methods used to indicate which source code is generated for. Source |
| 463 // positions are collected by the assembler and emitted with the relocation | 463 // positions are collected by the assembler and emitted with the relocation |
| 464 // information. | 464 // information. |
| 465 void CodeForStatement(Node* node); | 465 void CodeForFunctionPosition(FunctionLiteral* fun); |
| 466 void CodeForStatementPosition(Node* node); |
| 466 void CodeForSourcePosition(int pos); | 467 void CodeForSourcePosition(int pos); |
| 467 | 468 |
| 468 bool is_eval_; // Tells whether code is generated for eval. | 469 bool is_eval_; // Tells whether code is generated for eval. |
| 469 | 470 |
| 470 #ifdef DEBUG | 471 #ifdef DEBUG |
| 471 // True if the registers are valid for entry to a block. There should be | 472 // True if the registers are valid for entry to a block. There should be |
| 472 // no frame-external references to eax, ebx, ecx, edx, or edi. | 473 // no frame-external references to eax, ebx, ecx, edx, or edi. |
| 473 bool HasValidEntryRegisters(); | 474 bool HasValidEntryRegisters(); |
| 474 #endif | 475 #endif |
| 475 | 476 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 cgen_->set_in_spilled_code(false); | 516 cgen_->set_in_spilled_code(false); |
| 516 GetValue(typeof_state); | 517 GetValue(typeof_state); |
| 517 cgen_->frame()->SpillAll(); | 518 cgen_->frame()->SpillAll(); |
| 518 cgen_->set_in_spilled_code(true); | 519 cgen_->set_in_spilled_code(true); |
| 519 } | 520 } |
| 520 | 521 |
| 521 | 522 |
| 522 } } // namespace v8::internal | 523 } } // namespace v8::internal |
| 523 | 524 |
| 524 #endif // V8_CODEGEN_IA32_H_ | 525 #endif // V8_CODEGEN_IA32_H_ |
| OLD | NEW |