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

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

Issue 1516753006: [turbofan] Some more cleanup on the intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 6
7 #include "src/contexts.h" 7 #include "src/contexts.h"
8 #include "src/frames.h" 8 #include "src/frames.h"
9 #include "src/heap/heap.h" 9 #include "src/heap/heap.h"
10 #include "src/type-cache.h" 10 #include "src/type-cache.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // static 122 // static
123 FieldAccess AccessBuilder::ForJSDateField(JSDate::FieldIndex index) { 123 FieldAccess AccessBuilder::ForJSDateField(JSDate::FieldIndex index) {
124 FieldAccess access = { 124 FieldAccess access = {
125 kTaggedBase, JSDate::kValueOffset + index * kPointerSize, 125 kTaggedBase, JSDate::kValueOffset + index * kPointerSize,
126 MaybeHandle<Name>(), Type::Number(), MachineType::AnyTagged()}; 126 MaybeHandle<Name>(), Type::Number(), MachineType::AnyTagged()};
127 return access; 127 return access;
128 } 128 }
129 129
130 130
131 // static 131 // static
132 FieldAccess AccessBuilder::ForJSRegExpFlags() {
133 FieldAccess access = {kTaggedBase, JSRegExp::kFlagsOffset,
134 MaybeHandle<Name>(), Type::Tagged(),
135 MachineType::AnyTagged()};
136 return access;
137 }
138
139
140 // static
141 FieldAccess AccessBuilder::ForJSRegExpSource() {
142 FieldAccess access = {kTaggedBase, JSRegExp::kSourceOffset,
143 MaybeHandle<Name>(), Type::Tagged(),
144 MachineType::AnyTagged()};
145 return access;
146 }
147
148
149 // static
132 FieldAccess AccessBuilder::ForFixedArrayLength() { 150 FieldAccess AccessBuilder::ForFixedArrayLength() {
133 FieldAccess access = { 151 FieldAccess access = {
134 kTaggedBase, FixedArray::kLengthOffset, MaybeHandle<Name>(), 152 kTaggedBase, FixedArray::kLengthOffset, MaybeHandle<Name>(),
135 TypeCache::Get().kFixedArrayLengthType, MachineType::AnyTagged()}; 153 TypeCache::Get().kFixedArrayLengthType, MachineType::AnyTagged()};
136 return access; 154 return access;
137 } 155 }
138 156
139 157
140 // static 158 // static
141 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() { 159 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() {
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 // static 375 // static
358 FieldAccess AccessBuilder::ForStatsCounter() { 376 FieldAccess AccessBuilder::ForStatsCounter() {
359 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(), 377 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(),
360 TypeCache::Get().kInt32, MachineType::Int32()}; 378 TypeCache::Get().kInt32, MachineType::Int32()};
361 return access; 379 return access;
362 } 380 }
363 381
364 } // namespace compiler 382 } // namespace compiler
365 } // namespace internal 383 } // namespace internal
366 } // namespace v8 384 } // 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