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

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

Issue 866493003: Retry "Use a WeakCell in the CallIC type vector." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 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
« no previous file with comments | « src/arm64/interface-descriptors-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 V(ToNumber) \ 56 V(ToNumber) \
57 /* HydrogenCodeStubs */ \ 57 /* HydrogenCodeStubs */ \
58 V(AllocateHeapNumber) \ 58 V(AllocateHeapNumber) \
59 V(ArrayNArgumentsConstructor) \ 59 V(ArrayNArgumentsConstructor) \
60 V(ArrayNoArgumentConstructor) \ 60 V(ArrayNoArgumentConstructor) \
61 V(ArraySingleArgumentConstructor) \ 61 V(ArraySingleArgumentConstructor) \
62 V(BinaryOpIC) \ 62 V(BinaryOpIC) \
63 V(BinaryOpWithAllocationSite) \ 63 V(BinaryOpWithAllocationSite) \
64 V(CompareNilIC) \ 64 V(CompareNilIC) \
65 V(CreateAllocationSite) \ 65 V(CreateAllocationSite) \
66 V(CreateWeakCell) \
66 V(ElementsTransitionAndStore) \ 67 V(ElementsTransitionAndStore) \
67 V(FastCloneShallowArray) \ 68 V(FastCloneShallowArray) \
68 V(FastCloneShallowObject) \ 69 V(FastCloneShallowObject) \
69 V(FastNewClosure) \ 70 V(FastNewClosure) \
70 V(FastNewContext) \ 71 V(FastNewContext) \
71 V(InternalArrayNArgumentsConstructor) \ 72 V(InternalArrayNArgumentsConstructor) \
72 V(InternalArrayNoArgumentConstructor) \ 73 V(InternalArrayNoArgumentConstructor) \
73 V(InternalArraySingleArgumentConstructor) \ 74 V(InternalArraySingleArgumentConstructor) \
74 V(KeyedLoadGeneric) \ 75 V(KeyedLoadGeneric) \
75 V(LoadScriptContextField) \ 76 V(LoadScriptContextField) \
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 explicit CreateAllocationSiteStub(Isolate* isolate) 670 explicit CreateAllocationSiteStub(Isolate* isolate)
670 : HydrogenCodeStub(isolate) { } 671 : HydrogenCodeStub(isolate) { }
671 672
672 static void GenerateAheadOfTime(Isolate* isolate); 673 static void GenerateAheadOfTime(Isolate* isolate);
673 674
674 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateAllocationSite); 675 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateAllocationSite);
675 DEFINE_HYDROGEN_CODE_STUB(CreateAllocationSite, HydrogenCodeStub); 676 DEFINE_HYDROGEN_CODE_STUB(CreateAllocationSite, HydrogenCodeStub);
676 }; 677 };
677 678
678 679
680 class CreateWeakCellStub : public HydrogenCodeStub {
681 public:
682 explicit CreateWeakCellStub(Isolate* isolate) : HydrogenCodeStub(isolate) {}
683
684 static void GenerateAheadOfTime(Isolate* isolate);
685
686 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateWeakCell);
687 DEFINE_HYDROGEN_CODE_STUB(CreateWeakCell, HydrogenCodeStub);
688 };
689
690
679 class InstanceofStub: public PlatformCodeStub { 691 class InstanceofStub: public PlatformCodeStub {
680 public: 692 public:
681 enum Flags { 693 enum Flags {
682 kNoFlags = 0, 694 kNoFlags = 0,
683 kArgsInRegisters = 1 << 0, 695 kArgsInRegisters = 1 << 0,
684 kCallSiteInlineCheck = 1 << 1, 696 kCallSiteInlineCheck = 1 << 1,
685 kReturnTrueFalseObject = 1 << 2 697 kReturnTrueFalseObject = 1 << 2
686 }; 698 };
687 699
688 InstanceofStub(Isolate* isolate, Flags flags) : PlatformCodeStub(isolate) { 700 InstanceofStub(Isolate* isolate, Flags flags) : PlatformCodeStub(isolate) {
(...skipping 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after
2673 2685
2674 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR 2686 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR
2675 #undef DEFINE_PLATFORM_CODE_STUB 2687 #undef DEFINE_PLATFORM_CODE_STUB
2676 #undef DEFINE_HANDLER_CODE_STUB 2688 #undef DEFINE_HANDLER_CODE_STUB
2677 #undef DEFINE_HYDROGEN_CODE_STUB 2689 #undef DEFINE_HYDROGEN_CODE_STUB
2678 #undef DEFINE_CODE_STUB 2690 #undef DEFINE_CODE_STUB
2679 #undef DEFINE_CODE_STUB_BASE 2691 #undef DEFINE_CODE_STUB_BASE
2680 } } // namespace v8::internal 2692 } } // namespace v8::internal
2681 2693
2682 #endif // V8_CODE_STUBS_H_ 2694 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/arm64/interface-descriptors-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698