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

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

Issue 1419173007: [turbofan] Add support for transitioning stores to double fields. (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-native-context-specialization.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"
11 #include "src/types-inl.h" 11 #include "src/types-inl.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 namespace compiler { 15 namespace compiler {
16 16
17 // static 17 // static
18 FieldAccess AccessBuilder::ForMap() { 18 FieldAccess AccessBuilder::ForMap() {
19 FieldAccess access = {kTaggedBase, HeapObject::kMapOffset, 19 FieldAccess access = {kTaggedBase, HeapObject::kMapOffset,
20 MaybeHandle<Name>(), Type::Any(), kMachAnyTagged}; 20 MaybeHandle<Name>(), Type::Any(), kMachAnyTagged};
21 return access; 21 return access;
22 } 22 }
23 23
24 24
25 // static 25 // static
26 FieldAccess AccessBuilder::ForHeapNumberValue() {
27 FieldAccess access = {kTaggedBase, HeapNumber::kValueOffset,
28 MaybeHandle<Name>(), TypeCache().Get().kFloat64,
29 kMachFloat64};
30 return access;
31 }
32
33
34 // static
26 FieldAccess AccessBuilder::ForJSObjectProperties() { 35 FieldAccess AccessBuilder::ForJSObjectProperties() {
27 FieldAccess access = {kTaggedBase, JSObject::kPropertiesOffset, 36 FieldAccess access = {kTaggedBase, JSObject::kPropertiesOffset,
28 MaybeHandle<Name>(), Type::Internal(), kMachAnyTagged}; 37 MaybeHandle<Name>(), Type::Internal(), kMachAnyTagged};
29 return access; 38 return access;
30 } 39 }
31 40
32 41
33 // static 42 // static
34 FieldAccess AccessBuilder::ForJSObjectElements() { 43 FieldAccess AccessBuilder::ForJSObjectElements() {
35 FieldAccess access = {kTaggedBase, JSObject::kElementsOffset, 44 FieldAccess access = {kTaggedBase, JSObject::kElementsOffset,
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 // static 325 // static
317 FieldAccess AccessBuilder::ForFrameMarker() { 326 FieldAccess AccessBuilder::ForFrameMarker() {
318 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, 327 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset,
319 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; 328 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged};
320 return access; 329 return access;
321 } 330 }
322 331
323 } // namespace compiler 332 } // namespace compiler
324 } // namespace internal 333 } // namespace internal
325 } // namespace v8 334 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698