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

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: REBASE. 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
« no previous file with comments | « src/ast.cc ('k') | src/code-stubs.cc » ('j') | src/hydrogen.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
« no previous file with comments | « src/ast.cc ('k') | src/code-stubs.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698