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

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

Issue 1404773002: Introduce AllocateInNewSpace stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@begin-macro
Patch Set: Rebase Created 5 years, 2 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/code-factory.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 V(SubString) \ 53 V(SubString) \
54 V(ToNumber) \ 54 V(ToNumber) \
55 V(ToString) \ 55 V(ToString) \
56 V(ToObject) \ 56 V(ToObject) \
57 V(VectorStoreICTrampoline) \ 57 V(VectorStoreICTrampoline) \
58 V(VectorKeyedStoreICTrampoline) \ 58 V(VectorKeyedStoreICTrampoline) \
59 V(VectorStoreIC) \ 59 V(VectorStoreIC) \
60 V(VectorKeyedStoreIC) \ 60 V(VectorKeyedStoreIC) \
61 /* HydrogenCodeStubs */ \ 61 /* HydrogenCodeStubs */ \
62 V(AllocateHeapNumber) \ 62 V(AllocateHeapNumber) \
63 V(AllocateInNewSpace) \
63 V(ArrayNArgumentsConstructor) \ 64 V(ArrayNArgumentsConstructor) \
64 V(ArrayNoArgumentConstructor) \ 65 V(ArrayNoArgumentConstructor) \
65 V(ArraySingleArgumentConstructor) \ 66 V(ArraySingleArgumentConstructor) \
66 V(BinaryOpIC) \ 67 V(BinaryOpIC) \
67 V(BinaryOpWithAllocationSite) \ 68 V(BinaryOpWithAllocationSite) \
68 V(CompareNilIC) \ 69 V(CompareNilIC) \
69 V(CreateAllocationSite) \ 70 V(CreateAllocationSite) \
70 V(CreateWeakCell) \ 71 V(CreateWeakCell) \
71 V(ElementsTransitionAndStore) \ 72 V(ElementsTransitionAndStore) \
72 V(FastCloneShallowArray) \ 73 V(FastCloneShallowArray) \
(...skipping 2576 matching lines...) Expand 10 before | Expand all | Expand 10 after
2649 public: 2650 public:
2650 explicit AllocateHeapNumberStub(Isolate* isolate) 2651 explicit AllocateHeapNumberStub(Isolate* isolate)
2651 : HydrogenCodeStub(isolate) {} 2652 : HydrogenCodeStub(isolate) {}
2652 2653
2653 private: 2654 private:
2654 DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateHeapNumber); 2655 DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateHeapNumber);
2655 DEFINE_HYDROGEN_CODE_STUB(AllocateHeapNumber, HydrogenCodeStub); 2656 DEFINE_HYDROGEN_CODE_STUB(AllocateHeapNumber, HydrogenCodeStub);
2656 }; 2657 };
2657 2658
2658 2659
2660 class AllocateInNewSpaceStub final : public HydrogenCodeStub {
2661 public:
2662 explicit AllocateInNewSpaceStub(Isolate* isolate)
2663 : HydrogenCodeStub(isolate) {}
2664
2665 private:
2666 DEFINE_CALL_INTERFACE_DESCRIPTOR(AllocateInNewSpace);
2667 DEFINE_HYDROGEN_CODE_STUB(AllocateInNewSpace, HydrogenCodeStub);
2668 };
2669
2670
2659 class ArrayConstructorStubBase : public HydrogenCodeStub { 2671 class ArrayConstructorStubBase : public HydrogenCodeStub {
2660 public: 2672 public:
2661 ArrayConstructorStubBase(Isolate* isolate, 2673 ArrayConstructorStubBase(Isolate* isolate,
2662 ElementsKind kind, 2674 ElementsKind kind,
2663 AllocationSiteOverrideMode override_mode) 2675 AllocationSiteOverrideMode override_mode)
2664 : HydrogenCodeStub(isolate) { 2676 : HydrogenCodeStub(isolate) {
2665 // It only makes sense to override local allocation site behavior 2677 // It only makes sense to override local allocation site behavior
2666 // if there is a difference between the global allocation site policy 2678 // if there is a difference between the global allocation site policy
2667 // for an ElementsKind and the desired usage of the stub. 2679 // for an ElementsKind and the desired usage of the stub.
2668 DCHECK(override_mode != DISABLE_ALLOCATION_SITES || 2680 DCHECK(override_mode != DISABLE_ALLOCATION_SITES ||
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
3097 #undef DEFINE_HYDROGEN_CODE_STUB 3109 #undef DEFINE_HYDROGEN_CODE_STUB
3098 #undef DEFINE_CODE_STUB 3110 #undef DEFINE_CODE_STUB
3099 #undef DEFINE_CODE_STUB_BASE 3111 #undef DEFINE_CODE_STUB_BASE
3100 3112
3101 extern Representation RepresentationFromType(Type* type); 3113 extern Representation RepresentationFromType(Type* type);
3102 3114
3103 } // namespace internal 3115 } // namespace internal
3104 } // namespace v8 3116 } // namespace v8
3105 3117
3106 #endif // V8_CODE_STUBS_H_ 3118 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698