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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 private: | 668 private: |
669 int length_; | 669 int length_; |
670 | 670 |
671 Major MajorKey() { return FastCloneShallowObject; } | 671 Major MajorKey() { return FastCloneShallowObject; } |
672 int NotMissMinorKey() { return length_; } | 672 int NotMissMinorKey() { return length_; } |
673 | 673 |
674 DISALLOW_COPY_AND_ASSIGN(FastCloneShallowObjectStub); | 674 DISALLOW_COPY_AND_ASSIGN(FastCloneShallowObjectStub); |
675 }; | 675 }; |
676 | 676 |
677 | 677 |
678 class CreateAllocationSiteStub : public HydrogenCodeStub { | |
679 public: | |
680 explicit CreateAllocationSiteStub() { } | |
681 | |
682 virtual Handle<Code> GenerateCode(Isolate* isolate); | |
683 | |
684 static void GenerateAheadOfTime(Isolate* isolate); | |
685 | |
686 virtual void InitializeInterfaceDescriptor( | |
687 Isolate* isolate, | |
688 CodeStubInterfaceDescriptor* descriptor); | |
689 | |
690 private: | |
691 Major MajorKey() { return CreateAllocationSite; } | |
692 int NotMissMinorKey() { return 0; } | |
693 | |
694 DISALLOW_COPY_AND_ASSIGN(CreateAllocationSiteStub); | |
695 }; | |
696 | |
697 | |
698 class InstanceofStub: public PlatformCodeStub { | 678 class InstanceofStub: public PlatformCodeStub { |
699 public: | 679 public: |
700 enum Flags { | 680 enum Flags { |
701 kNoFlags = 0, | 681 kNoFlags = 0, |
702 kArgsInRegisters = 1 << 0, | 682 kArgsInRegisters = 1 << 0, |
703 kCallSiteInlineCheck = 1 << 1, | 683 kCallSiteInlineCheck = 1 << 1, |
704 kReturnTrueFalseObject = 1 << 2 | 684 kReturnTrueFalseObject = 1 << 2 |
705 }; | 685 }; |
706 | 686 |
707 explicit InstanceofStub(Flags flags) : flags_(flags) { } | 687 explicit InstanceofStub(Flags flags) : flags_(flags) { } |
(...skipping 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2476 | 2456 |
2477 | 2457 |
2478 class CallDescriptors { | 2458 class CallDescriptors { |
2479 public: | 2459 public: |
2480 static void InitializeForIsolate(Isolate* isolate); | 2460 static void InitializeForIsolate(Isolate* isolate); |
2481 }; | 2461 }; |
2482 | 2462 |
2483 } } // namespace v8::internal | 2463 } } // namespace v8::internal |
2484 | 2464 |
2485 #endif // V8_CODE_STUBS_H_ | 2465 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |