OLD | NEW |
---|---|
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/compiler/access-builder.h" | 5 #include "src/compiler/access-builder.h" |
6 #include "src/types-inl.h" | 6 #include "src/types-inl.h" |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 namespace compiler { | 10 namespace compiler { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(), | 143 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(), |
144 kMachUint8}; | 144 kMachUint8}; |
145 case String::TWO_BYTE_ENCODING: | 145 case String::TWO_BYTE_ENCODING: |
146 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(), | 146 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(), |
147 kMachUint16}; | 147 kMachUint16}; |
148 } | 148 } |
149 UNREACHABLE(); | 149 UNREACHABLE(); |
150 return {kUntaggedBase, 0, Type::None(), kMachNone}; | 150 return {kUntaggedBase, 0, Type::None(), kMachNone}; |
151 } | 151 } |
152 | 152 |
153 | |
154 // static | |
155 FieldAccess AccessBuilder::ForJSFunctionSharedFunctionInfo() { | |
156 return {kTaggedBase, JSFunction::kSharedFunctionInfoOffset, Handle<Name>(), | |
157 Type::Any(), kMachAnyTagged}; | |
158 } | |
159 | |
160 | |
161 FieldAccess AccessBuilder::ForSharedFunctionInfoTypeFeedbackVector() { | |
Benedikt Meurer
2015/05/11 04:40:12
Nit: Missing // static before definition.
danno
2015/05/11 06:14:19
Done.
| |
162 return {kTaggedBase, SharedFunctionInfo::kFeedbackVectorOffset, | |
163 Handle<Name>(), Type::Any(), kMachAnyTagged}; | |
164 } | |
165 | |
Benedikt Meurer
2015/05/11 04:40:12
Nit: redundant new line :-)
danno
2015/05/11 06:14:19
Done.
| |
166 | |
153 } // namespace compiler | 167 } // namespace compiler |
154 } // namespace internal | 168 } // namespace internal |
155 } // namespace v8 | 169 } // namespace v8 |
OLD | NEW |