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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 private: | 650 private: |
651 virtual CodeStub::Major MajorKey() { return ArrayConstructor; } | 651 virtual CodeStub::Major MajorKey() { return ArrayConstructor; } |
652 virtual int MinorKey() { return argument_count_; } | 652 virtual int MinorKey() { return argument_count_; } |
653 | 653 |
654 ArgumentCountKey argument_count_; | 654 ArgumentCountKey argument_count_; |
655 }; | 655 }; |
656 | 656 |
657 | 657 |
658 class MathPowStub: public PlatformCodeStub { | 658 class MathPowStub: public PlatformCodeStub { |
659 public: | 659 public: |
660 enum ExponentType { INTEGER, DOUBLE, TAGGED, ON_STACK}; | 660 enum ExponentType { INTEGER, DOUBLE, TAGGED, ON_STACK }; |
661 | 661 |
662 explicit MathPowStub(ExponentType exponent_type) | 662 explicit MathPowStub(ExponentType exponent_type) |
663 : exponent_type_(exponent_type) { } | 663 : exponent_type_(exponent_type) { } |
664 virtual void Generate(MacroAssembler* masm); | 664 virtual void Generate(MacroAssembler* masm); |
665 | 665 |
666 private: | 666 private: |
667 virtual CodeStub::Major MajorKey() { return MathPow; } | 667 virtual CodeStub::Major MajorKey() { return MathPow; } |
668 virtual int MinorKey() { return exponent_type_; } | 668 virtual int MinorKey() { return exponent_type_; } |
669 | 669 |
670 ExponentType exponent_type_; | 670 ExponentType exponent_type_; |
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1964 | 1964 |
1965 // The current function entry hook. | 1965 // The current function entry hook. |
1966 static FunctionEntryHook entry_hook_; | 1966 static FunctionEntryHook entry_hook_; |
1967 | 1967 |
1968 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 1968 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
1969 }; | 1969 }; |
1970 | 1970 |
1971 } } // namespace v8::internal | 1971 } } // namespace v8::internal |
1972 | 1972 |
1973 #endif // V8_CODE_STUBS_H_ | 1973 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |