Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/code-stubs.h

Issue 132963012: Pretenure call new support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment response. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698