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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 friend class Result; | 619 friend class Result; |
620 friend class FastCodeGenerator; | 620 friend class FastCodeGenerator; |
621 friend class CodeGenSelector; | 621 friend class CodeGenSelector; |
622 | 622 |
623 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc | 623 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc |
624 | 624 |
625 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 625 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
626 }; | 626 }; |
627 | 627 |
628 | 628 |
| 629 class CallFunctionStub: public CodeStub { |
| 630 public: |
| 631 CallFunctionStub(int argc, InLoopFlag in_loop) |
| 632 : argc_(argc), in_loop_(in_loop) { } |
| 633 |
| 634 void Generate(MacroAssembler* masm); |
| 635 |
| 636 private: |
| 637 int argc_; |
| 638 InLoopFlag in_loop_; |
| 639 |
| 640 #ifdef DEBUG |
| 641 void Print() { PrintF("CallFunctionStub (args %d)\n", argc_); } |
| 642 #endif |
| 643 |
| 644 Major MajorKey() { return CallFunction; } |
| 645 int MinorKey() { return argc_; } |
| 646 InLoopFlag InLoop() { return in_loop_; } |
| 647 }; |
| 648 |
| 649 |
629 class ToBooleanStub: public CodeStub { | 650 class ToBooleanStub: public CodeStub { |
630 public: | 651 public: |
631 ToBooleanStub() { } | 652 ToBooleanStub() { } |
632 | 653 |
633 void Generate(MacroAssembler* masm); | 654 void Generate(MacroAssembler* masm); |
634 | 655 |
635 private: | 656 private: |
636 Major MajorKey() { return ToBoolean; } | 657 Major MajorKey() { return ToBoolean; } |
637 int MinorKey() { return 0; } | 658 int MinorKey() { return 0; } |
638 }; | 659 }; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 void SetArgsReversed() { args_reversed_ = true; } | 746 void SetArgsReversed() { args_reversed_ = true; } |
726 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } | 747 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } |
727 bool HasArgumentsInRegisters() { return args_in_registers_; } | 748 bool HasArgumentsInRegisters() { return args_in_registers_; } |
728 bool HasArgumentsReversed() { return args_reversed_; } | 749 bool HasArgumentsReversed() { return args_reversed_; } |
729 }; | 750 }; |
730 | 751 |
731 | 752 |
732 } } // namespace v8::internal | 753 } } // namespace v8::internal |
733 | 754 |
734 #endif // V8_IA32_CODEGEN_IA32_H_ | 755 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |