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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 private: | 670 private: |
671 int length_; | 671 int length_; |
672 | 672 |
673 Major MajorKey() { return FastCloneShallowObject; } | 673 Major MajorKey() { return FastCloneShallowObject; } |
674 int NotMissMinorKey() { return length_; } | 674 int NotMissMinorKey() { return length_; } |
675 | 675 |
676 DISALLOW_COPY_AND_ASSIGN(FastCloneShallowObjectStub); | 676 DISALLOW_COPY_AND_ASSIGN(FastCloneShallowObjectStub); |
677 }; | 677 }; |
678 | 678 |
679 | 679 |
680 class CreateAllocationSiteStub : public HydrogenCodeStub { | |
681 public: | |
682 explicit CreateAllocationSiteStub() { } | |
683 | |
684 virtual Handle<Code> GenerateCode(Isolate* isolate); | |
685 | |
686 static void GenerateAheadOfTime(Isolate* isolate); | |
687 | |
688 virtual void InitializeInterfaceDescriptor( | |
689 Isolate* isolate, | |
690 CodeStubInterfaceDescriptor* descriptor); | |
691 | |
692 private: | |
693 Major MajorKey() { return CreateAllocationSite; } | |
694 int NotMissMinorKey() { return 0; } | |
695 | |
696 DISALLOW_COPY_AND_ASSIGN(CreateAllocationSiteStub); | |
697 }; | |
698 | |
699 | |
700 class InstanceofStub: public PlatformCodeStub { | 680 class InstanceofStub: public PlatformCodeStub { |
701 public: | 681 public: |
702 enum Flags { | 682 enum Flags { |
703 kNoFlags = 0, | 683 kNoFlags = 0, |
704 kArgsInRegisters = 1 << 0, | 684 kArgsInRegisters = 1 << 0, |
705 kCallSiteInlineCheck = 1 << 1, | 685 kCallSiteInlineCheck = 1 << 1, |
706 kReturnTrueFalseObject = 1 << 2 | 686 kReturnTrueFalseObject = 1 << 2 |
707 }; | 687 }; |
708 | 688 |
709 explicit InstanceofStub(Flags flags) : flags_(flags) { } | 689 explicit InstanceofStub(Flags flags) : flags_(flags) { } |
(...skipping 1766 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 |