| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 : codegen_(codegen), | 376 : codegen_(codegen), |
| 377 external_exit_(NULL), | 377 external_exit_(NULL), |
| 378 instruction_index_(codegen->current_instruction_) { | 378 instruction_index_(codegen->current_instruction_) { |
| 379 codegen->AddDeferredCode(this); | 379 codegen->AddDeferredCode(this); |
| 380 } | 380 } |
| 381 | 381 |
| 382 virtual ~LDeferredCode() { } | 382 virtual ~LDeferredCode() { } |
| 383 virtual void Generate() = 0; | 383 virtual void Generate() = 0; |
| 384 virtual LInstruction* instr() = 0; | 384 virtual LInstruction* instr() = 0; |
| 385 | 385 |
| 386 void SetExit(Label *exit) { external_exit_ = exit; } | 386 void SetExit(Label* exit) { external_exit_ = exit; } |
| 387 Label* entry() { return &entry_; } | 387 Label* entry() { return &entry_; } |
| 388 Label* exit() { return external_exit_ != NULL ? external_exit_ : &exit_; } | 388 Label* exit() { return external_exit_ != NULL ? external_exit_ : &exit_; } |
| 389 int instruction_index() const { return instruction_index_; } | 389 int instruction_index() const { return instruction_index_; } |
| 390 | 390 |
| 391 protected: | 391 protected: |
| 392 LCodeGen* codegen() const { return codegen_; } | 392 LCodeGen* codegen() const { return codegen_; } |
| 393 MacroAssembler* masm() const { return codegen_->masm(); } | 393 MacroAssembler* masm() const { return codegen_->masm(); } |
| 394 | 394 |
| 395 private: | 395 private: |
| 396 LCodeGen* codegen_; | 396 LCodeGen* codegen_; |
| 397 Label entry_; | 397 Label entry_; |
| 398 Label exit_; | 398 Label exit_; |
| 399 Label* external_exit_; | 399 Label* external_exit_; |
| 400 int instruction_index_; | 400 int instruction_index_; |
| 401 }; | 401 }; |
| 402 | 402 |
| 403 } } // namespace v8::internal | 403 } } // namespace v8::internal |
| 404 | 404 |
| 405 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 405 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |