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

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

Issue 1410953006: [turbofan] Properly type field access to stable heap object maps. (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 | « no previous file | src/compiler/js-native-context-specialization.cc » ('j') | src/compiler/typer.cc » ('J')
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 {
11 11
12 // static 12 // static
13 FieldAccess AccessBuilder::ForMap() { 13 FieldAccess AccessBuilder::ForMap() {
14 FieldAccess access = {kTaggedBase, HeapObject::kMapOffset, 14 FieldAccess access = {kTaggedBase, HeapObject::kMapOffset,
15 MaybeHandle<Name>(), Type::Any(), kMachAnyTagged}; 15 MaybeHandle<Name>(), Type::Internal(), kMachAnyTagged};
16 return access; 16 return access;
17 } 17 }
18 18
19 19
20 // static 20 // static
21 FieldAccess AccessBuilder::ForJSObjectProperties() { 21 FieldAccess AccessBuilder::ForJSObjectProperties() {
22 FieldAccess access = {kTaggedBase, JSObject::kPropertiesOffset, 22 FieldAccess access = {kTaggedBase, JSObject::kPropertiesOffset,
23 MaybeHandle<Name>(), Type::Any(), kMachAnyTagged}; 23 MaybeHandle<Name>(), Type::Any(), kMachAnyTagged};
24 return access; 24 return access;
25 } 25 }
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // static 299 // static
300 FieldAccess AccessBuilder::ForFrameMarker() { 300 FieldAccess AccessBuilder::ForFrameMarker() {
301 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, 301 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset,
302 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; 302 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged};
303 return access; 303 return access;
304 } 304 }
305 305
306 } // namespace compiler 306 } // namespace compiler
307 } // namespace internal 307 } // namespace internal
308 } // namespace v8 308 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-native-context-specialization.cc » ('j') | src/compiler/typer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698