| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 // permits optimization and calls GenerateFastCaseSwitch if it does. | 367 // permits optimization and calls GenerateFastCaseSwitch if it does. |
| 368 // Returns true if the fast-case switch was generated, and false if not. | 368 // Returns true if the fast-case switch was generated, and false if not. |
| 369 bool TryGenerateFastCaseSwitchStatement(SwitchStatement* node); | 369 bool TryGenerateFastCaseSwitchStatement(SwitchStatement* node); |
| 370 | 370 |
| 371 | 371 |
| 372 // Bottle-neck interface to call the Assembler to generate the statement | 372 // Bottle-neck interface to call the Assembler to generate the statement |
| 373 // position. This allows us to easily control whether statement positions | 373 // position. This allows us to easily control whether statement positions |
| 374 // should be generated or not. | 374 // should be generated or not. |
| 375 void RecordStatementPosition(Node* node); | 375 void RecordStatementPosition(Node* node); |
| 376 | 376 |
| 377 // Is the given jump target the actual (ie, non-shadowed) function return |
| 378 // target? |
| 379 bool IsActualFunctionReturn(JumpTarget* target); |
| 380 |
| 377 bool is_eval_; // Tells whether code is generated for eval. | 381 bool is_eval_; // Tells whether code is generated for eval. |
| 378 Handle<Script> script_; | 382 Handle<Script> script_; |
| 379 List<DeferredCode*> deferred_; | 383 List<DeferredCode*> deferred_; |
| 380 | 384 |
| 381 // Assembler | 385 // Assembler |
| 382 MacroAssembler* masm_; // to generate code | 386 MacroAssembler* masm_; // to generate code |
| 383 | 387 |
| 384 // Code generation state | 388 // Code generation state |
| 385 Scope* scope_; | 389 Scope* scope_; |
| 386 VirtualFrame* frame_; | 390 VirtualFrame* frame_; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 403 friend class JumpTarget; | 407 friend class JumpTarget; |
| 404 friend class Reference; | 408 friend class Reference; |
| 405 | 409 |
| 406 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 410 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 407 }; | 411 }; |
| 408 | 412 |
| 409 | 413 |
| 410 } } // namespace v8::internal | 414 } } // namespace v8::internal |
| 411 | 415 |
| 412 #endif // V8_CODEGEN_IA32_H_ | 416 #endif // V8_CODEGEN_IA32_H_ |
| OLD | NEW |