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

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

Issue 1426893002: [turbofan] Optimize JSConvertReceiver if we know something about the receiver. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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-operator.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 FieldAccess access = { 125 FieldAccess access = {
126 kTaggedBase, String::kLengthOffset, Handle<Name>(), 126 kTaggedBase, String::kLengthOffset, Handle<Name>(),
127 Type::Intersect(Type::Range(0, String::kMaxLength, zone), 127 Type::Intersect(Type::Range(0, String::kMaxLength, zone),
128 Type::TaggedSigned(), zone), 128 Type::TaggedSigned(), zone),
129 kMachAnyTagged}; 129 kMachAnyTagged};
130 return access; 130 return access;
131 } 131 }
132 132
133 133
134 // static 134 // static
135 FieldAccess AccessBuilder::ForGlobalObjectGlobalProxy() {
136 FieldAccess access = {kTaggedBase, GlobalObject::kGlobalProxyOffset,
137 Handle<Name>(), Type::Receiver(), kMachAnyTagged};
138 return access;
139 }
140
141
142 // static
135 FieldAccess AccessBuilder::ForGlobalObjectNativeContext() { 143 FieldAccess AccessBuilder::ForGlobalObjectNativeContext() {
136 FieldAccess access = {kTaggedBase, GlobalObject::kNativeContextOffset, 144 FieldAccess access = {kTaggedBase, GlobalObject::kNativeContextOffset,
137 Handle<Name>(), Type::Any(), kMachAnyTagged}; 145 Handle<Name>(), Type::Internal(), kMachAnyTagged};
138 return access; 146 return access;
139 } 147 }
140 148
141 149
142 // static 150 // static
143 FieldAccess AccessBuilder::ForValue() { 151 FieldAccess AccessBuilder::ForValue() {
144 FieldAccess access = {kTaggedBase, JSValue::kValueOffset, Handle<Name>(), 152 FieldAccess access = {kTaggedBase, JSValue::kValueOffset, Handle<Name>(),
145 Type::Any(), kMachAnyTagged}; 153 Type::Any(), kMachAnyTagged};
146 return access; 154 return access;
147 } 155 }
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // static 308 // static
301 FieldAccess AccessBuilder::ForFrameMarker() { 309 FieldAccess AccessBuilder::ForFrameMarker() {
302 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, 310 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset,
303 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; 311 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged};
304 return access; 312 return access;
305 } 313 }
306 314
307 } // namespace compiler 315 } // namespace compiler
308 } // namespace internal 316 } // namespace internal
309 } // namespace v8 317 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/js-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698