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

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

Issue 1868173002: Version 5.1.294.1 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1.294
Patch Set: Created 4 years, 8 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 | « include/v8-version.h ('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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 V(ArrayNoArgumentConstructor) \ 62 V(ArrayNoArgumentConstructor) \
63 V(ArraySingleArgumentConstructor) \ 63 V(ArraySingleArgumentConstructor) \
64 V(BinaryOpIC) \ 64 V(BinaryOpIC) \
65 V(BinaryOpWithAllocationSite) \ 65 V(BinaryOpWithAllocationSite) \
66 V(CreateAllocationSite) \ 66 V(CreateAllocationSite) \
67 V(CreateWeakCell) \ 67 V(CreateWeakCell) \
68 V(ElementsTransitionAndStore) \ 68 V(ElementsTransitionAndStore) \
69 V(FastArrayPush) \ 69 V(FastArrayPush) \
70 V(FastCloneRegExp) \ 70 V(FastCloneRegExp) \
71 V(FastCloneShallowArray) \ 71 V(FastCloneShallowArray) \
72 V(FastCloneShallowObject) \
72 V(FastNewClosure) \ 73 V(FastNewClosure) \
73 V(FastNewContext) \ 74 V(FastNewContext) \
74 V(FastNewObject) \ 75 V(FastNewObject) \
75 V(FastNewRestParameter) \ 76 V(FastNewRestParameter) \
76 V(FastNewSloppyArguments) \ 77 V(FastNewSloppyArguments) \
77 V(FastNewStrictArguments) \ 78 V(FastNewStrictArguments) \
78 V(GrowArrayElements) \ 79 V(GrowArrayElements) \
79 V(InternalArrayNArgumentsConstructor) \ 80 V(InternalArrayNArgumentsConstructor) \
80 V(InternalArrayNoArgumentConstructor) \ 81 V(InternalArrayNoArgumentConstructor) \
81 V(InternalArraySingleArgumentConstructor) \ 82 V(InternalArraySingleArgumentConstructor) \
(...skipping 26 matching lines...) Expand all
108 V(AllocateInt8x16) \ 109 V(AllocateInt8x16) \
109 V(AllocateUint8x16) \ 110 V(AllocateUint8x16) \
110 V(AllocateBool8x16) \ 111 V(AllocateBool8x16) \
111 V(StringLength) \ 112 V(StringLength) \
112 V(Add) \ 113 V(Add) \
113 V(Subtract) \ 114 V(Subtract) \
114 V(Multiply) \ 115 V(Multiply) \
115 V(BitwiseAnd) \ 116 V(BitwiseAnd) \
116 V(BitwiseOr) \ 117 V(BitwiseOr) \
117 V(BitwiseXor) \ 118 V(BitwiseXor) \
118 V(FastCloneShallowObject) \
119 V(LessThan) \ 119 V(LessThan) \
120 V(LessThanOrEqual) \ 120 V(LessThanOrEqual) \
121 V(GreaterThan) \ 121 V(GreaterThan) \
122 V(GreaterThanOrEqual) \ 122 V(GreaterThanOrEqual) \
123 V(Equal) \ 123 V(Equal) \
124 V(NotEqual) \ 124 V(NotEqual) \
125 V(StrictEqual) \ 125 V(StrictEqual) \
126 V(StrictNotEqual) \ 126 V(StrictNotEqual) \
127 V(StringEqual) \ 127 V(StringEqual) \
128 V(StringNotEqual) \ 128 V(StringNotEqual) \
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 return AllocationSiteModeBits::decode(sub_minor_key()); 1048 return AllocationSiteModeBits::decode(sub_minor_key());
1049 } 1049 }
1050 1050
1051 private: 1051 private:
1052 class AllocationSiteModeBits: public BitField<AllocationSiteMode, 0, 1> {}; 1052 class AllocationSiteModeBits: public BitField<AllocationSiteMode, 0, 1> {};
1053 1053
1054 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowArray); 1054 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowArray);
1055 DEFINE_HYDROGEN_CODE_STUB(FastCloneShallowArray, HydrogenCodeStub); 1055 DEFINE_HYDROGEN_CODE_STUB(FastCloneShallowArray, HydrogenCodeStub);
1056 }; 1056 };
1057 1057
1058 class FastCloneShallowObjectStub : public TurboFanCodeStub { 1058
1059 class FastCloneShallowObjectStub : public HydrogenCodeStub {
1059 public: 1060 public:
1060 // Maximum number of properties in copied object. 1061 // Maximum number of properties in copied object.
1061 static const int kMaximumClonedProperties = 6; 1062 static const int kMaximumClonedProperties = 6;
1062 1063
1063 FastCloneShallowObjectStub(Isolate* isolate, int length) 1064 FastCloneShallowObjectStub(Isolate* isolate, int length)
1064 : TurboFanCodeStub(isolate) { 1065 : HydrogenCodeStub(isolate) {
1065 DCHECK_GE(length, 0); 1066 DCHECK_GE(length, 0);
1066 DCHECK_LE(length, kMaximumClonedProperties); 1067 DCHECK_LE(length, kMaximumClonedProperties);
1067 minor_key_ = LengthBits::encode(LengthBits::encode(length)); 1068 set_sub_minor_key(LengthBits::encode(length));
1068 } 1069 }
1069 1070
1070 int length() const { return LengthBits::decode(minor_key_); } 1071 int length() const { return LengthBits::decode(sub_minor_key()); }
1071 1072
1072 private: 1073 private:
1073 class LengthBits : public BitField<int, 0, 4> {}; 1074 class LengthBits : public BitField<int, 0, 4> {};
1074 1075
1075 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowObject); 1076 DEFINE_CALL_INTERFACE_DESCRIPTOR(FastCloneShallowObject);
1076 DEFINE_TURBOFAN_CODE_STUB(FastCloneShallowObject, TurboFanCodeStub); 1077 DEFINE_HYDROGEN_CODE_STUB(FastCloneShallowObject, HydrogenCodeStub);
1077 }; 1078 };
1078 1079
1079 1080
1080 class CreateAllocationSiteStub : public HydrogenCodeStub { 1081 class CreateAllocationSiteStub : public HydrogenCodeStub {
1081 public: 1082 public:
1082 explicit CreateAllocationSiteStub(Isolate* isolate) 1083 explicit CreateAllocationSiteStub(Isolate* isolate)
1083 : HydrogenCodeStub(isolate) { } 1084 : HydrogenCodeStub(isolate) { }
1084 1085
1085 static void GenerateAheadOfTime(Isolate* isolate); 1086 static void GenerateAheadOfTime(Isolate* isolate);
1086 1087
(...skipping 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after
3098 #undef DEFINE_HYDROGEN_CODE_STUB 3099 #undef DEFINE_HYDROGEN_CODE_STUB
3099 #undef DEFINE_CODE_STUB 3100 #undef DEFINE_CODE_STUB
3100 #undef DEFINE_CODE_STUB_BASE 3101 #undef DEFINE_CODE_STUB_BASE
3101 3102
3102 extern Representation RepresentationFromType(Type* type); 3103 extern Representation RepresentationFromType(Type* type);
3103 3104
3104 } // namespace internal 3105 } // namespace internal
3105 } // namespace v8 3106 } // namespace v8
3106 3107
3107 #endif // V8_CODE_STUBS_H_ 3108 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « include/v8-version.h ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698