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

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

Issue 886663004: Revert of Use a WeakCell in the CallIC type vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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) \
67 V(ElementsTransitionAndStore) \ 66 V(ElementsTransitionAndStore) \
68 V(FastCloneShallowArray) \ 67 V(FastCloneShallowArray) \
69 V(FastCloneShallowObject) \ 68 V(FastCloneShallowObject) \
70 V(FastNewClosure) \ 69 V(FastNewClosure) \
71 V(FastNewContext) \ 70 V(FastNewContext) \
72 V(InternalArrayNArgumentsConstructor) \ 71 V(InternalArrayNArgumentsConstructor) \
73 V(InternalArrayNoArgumentConstructor) \ 72 V(InternalArrayNoArgumentConstructor) \
74 V(InternalArraySingleArgumentConstructor) \ 73 V(InternalArraySingleArgumentConstructor) \
75 V(KeyedLoadGeneric) \ 74 V(KeyedLoadGeneric) \
76 V(LoadScriptContextField) \ 75 V(LoadScriptContextField) \
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 explicit CreateAllocationSiteStub(Isolate* isolate) 669 explicit CreateAllocationSiteStub(Isolate* isolate)
671 : HydrogenCodeStub(isolate) { } 670 : HydrogenCodeStub(isolate) { }
672 671
673 static void GenerateAheadOfTime(Isolate* isolate); 672 static void GenerateAheadOfTime(Isolate* isolate);
674 673
675 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateAllocationSite); 674 DEFINE_CALL_INTERFACE_DESCRIPTOR(CreateAllocationSite);
676 DEFINE_HYDROGEN_CODE_STUB(CreateAllocationSite, HydrogenCodeStub); 675 DEFINE_HYDROGEN_CODE_STUB(CreateAllocationSite, HydrogenCodeStub);
677 }; 676 };
678 677
679 678
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
691 class InstanceofStub: public PlatformCodeStub { 679 class InstanceofStub: public PlatformCodeStub {
692 public: 680 public:
693 enum Flags { 681 enum Flags {
694 kNoFlags = 0, 682 kNoFlags = 0,
695 kArgsInRegisters = 1 << 0, 683 kArgsInRegisters = 1 << 0,
696 kCallSiteInlineCheck = 1 << 1, 684 kCallSiteInlineCheck = 1 << 1,
697 kReturnTrueFalseObject = 1 << 2 685 kReturnTrueFalseObject = 1 << 2
698 }; 686 };
699 687
700 InstanceofStub(Isolate* isolate, Flags flags) : PlatformCodeStub(isolate) { 688 InstanceofStub(Isolate* isolate, Flags flags) : PlatformCodeStub(isolate) {
(...skipping 1982 matching lines...) Expand 10 before | Expand all | Expand 10 after
2683 2671
2684 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR 2672 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR
2685 #undef DEFINE_PLATFORM_CODE_STUB 2673 #undef DEFINE_PLATFORM_CODE_STUB
2686 #undef DEFINE_HANDLER_CODE_STUB 2674 #undef DEFINE_HANDLER_CODE_STUB
2687 #undef DEFINE_HYDROGEN_CODE_STUB 2675 #undef DEFINE_HYDROGEN_CODE_STUB
2688 #undef DEFINE_CODE_STUB 2676 #undef DEFINE_CODE_STUB
2689 #undef DEFINE_CODE_STUB_BASE 2677 #undef DEFINE_CODE_STUB_BASE
2690 } } // namespace v8::internal 2678 } } // namespace v8::internal
2691 2679
2692 #endif // V8_CODE_STUBS_H_ 2680 #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