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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 : codegen_(codegen), | 404 : codegen_(codegen), |
405 external_exit_(NULL), | 405 external_exit_(NULL), |
406 instruction_index_(codegen->current_instruction_) { | 406 instruction_index_(codegen->current_instruction_) { |
407 codegen->AddDeferredCode(this); | 407 codegen->AddDeferredCode(this); |
408 } | 408 } |
409 | 409 |
410 virtual ~LDeferredCode() { } | 410 virtual ~LDeferredCode() { } |
411 virtual void Generate() = 0; | 411 virtual void Generate() = 0; |
412 virtual LInstruction* instr() = 0; | 412 virtual LInstruction* instr() = 0; |
413 | 413 |
414 void SetExit(Label *exit) { external_exit_ = exit; } | 414 void SetExit(Label* exit) { external_exit_ = exit; } |
415 Label* entry() { return &entry_; } | 415 Label* entry() { return &entry_; } |
416 Label* exit() { return external_exit_ != NULL ? external_exit_ : &exit_; } | 416 Label* exit() { return external_exit_ != NULL ? external_exit_ : &exit_; } |
417 int instruction_index() const { return instruction_index_; } | 417 int instruction_index() const { return instruction_index_; } |
418 | 418 |
419 protected: | 419 protected: |
420 LCodeGen* codegen() const { return codegen_; } | 420 LCodeGen* codegen() const { return codegen_; } |
421 MacroAssembler* masm() const { return codegen_->masm(); } | 421 MacroAssembler* masm() const { return codegen_->masm(); } |
422 | 422 |
423 private: | 423 private: |
424 LCodeGen* codegen_; | 424 LCodeGen* codegen_; |
425 Label entry_; | 425 Label entry_; |
426 Label exit_; | 426 Label exit_; |
427 Label* external_exit_; | 427 Label* external_exit_; |
428 int instruction_index_; | 428 int instruction_index_; |
429 }; | 429 }; |
430 | 430 |
431 } } // namespace v8::internal | 431 } } // namespace v8::internal |
432 | 432 |
433 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 433 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |