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

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

Issue 1531753002: [turbofan] Add support for CreateIterResultObject. (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-generic-lowering.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 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::ForJSIteratorResultDone() {
133 FieldAccess access = {kTaggedBase, JSIteratorResult::kDoneOffset,
134 MaybeHandle<Name>(), Type::Any(),
135 MachineType::AnyTagged()};
136 return access;
137 }
138
139
140 // static
141 FieldAccess AccessBuilder::ForJSIteratorResultValue() {
142 FieldAccess access = {kTaggedBase, JSIteratorResult::kValueOffset,
143 MaybeHandle<Name>(), Type::Any(),
144 MachineType::AnyTagged()};
145 return access;
146 }
147
148
149 // static
132 FieldAccess AccessBuilder::ForJSRegExpFlags() { 150 FieldAccess AccessBuilder::ForJSRegExpFlags() {
133 FieldAccess access = {kTaggedBase, JSRegExp::kFlagsOffset, 151 FieldAccess access = {kTaggedBase, JSRegExp::kFlagsOffset,
134 MaybeHandle<Name>(), Type::Tagged(), 152 MaybeHandle<Name>(), Type::Tagged(),
135 MachineType::AnyTagged()}; 153 MachineType::AnyTagged()};
136 return access; 154 return access;
137 } 155 }
138 156
139 157
140 // static 158 // static
141 FieldAccess AccessBuilder::ForJSRegExpSource() { 159 FieldAccess AccessBuilder::ForJSRegExpSource() {
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // static 393 // static
376 FieldAccess AccessBuilder::ForStatsCounter() { 394 FieldAccess AccessBuilder::ForStatsCounter() {
377 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(), 395 FieldAccess access = {kUntaggedBase, 0, MaybeHandle<Name>(),
378 TypeCache::Get().kInt32, MachineType::Int32()}; 396 TypeCache::Get().kInt32, MachineType::Int32()};
379 return access; 397 return access;
380 } 398 }
381 399
382 } // namespace compiler 400 } // namespace compiler
383 } // namespace internal 401 } // namespace internal
384 } // namespace v8 402 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698