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

Side by Side Diff: src/compiler/access-builder.cc

Issue 1013753016: Add full TurboFan support for accessing SeqString contents. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed return value Created 5 years, 9 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/compiler/access-builder.h ('k') | src/compiler/js-intrinsic-lowering.h » ('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 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 return {taggedness, header_size, Type::Unsigned32(), kMachUint32}; 109 return {taggedness, header_size, Type::Unsigned32(), kMachUint32};
110 case kExternalFloat32Array: 110 case kExternalFloat32Array:
111 return {taggedness, header_size, Type::Number(), kMachFloat32}; 111 return {taggedness, header_size, Type::Number(), kMachFloat32};
112 case kExternalFloat64Array: 112 case kExternalFloat64Array:
113 return {taggedness, header_size, Type::Number(), kMachFloat64}; 113 return {taggedness, header_size, Type::Number(), kMachFloat64};
114 } 114 }
115 UNREACHABLE(); 115 UNREACHABLE();
116 return {kUntaggedBase, 0, Type::None(), kMachNone}; 116 return {kUntaggedBase, 0, Type::None(), kMachNone};
117 } 117 }
118 118
119
120 // static
121 ElementAccess AccessBuilder::ForSeqStringChar(String::Encoding encoding) {
122 switch (encoding) {
123 case String::ONE_BYTE_ENCODING:
124 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(),
125 kMachUint8};
126 case String::TWO_BYTE_ENCODING:
127 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(),
128 kMachUint16};
129 }
130 UNREACHABLE();
131 return {kUntaggedBase, 0, Type::None(), kMachNone};
132 }
133
119 } // namespace compiler 134 } // namespace compiler
120 } // namespace internal 135 } // namespace internal
121 } // namespace v8 136 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/js-intrinsic-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698