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

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

Issue 614703002: Drop deprecated method for backing store from AccessBuilder. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 months 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/access-builder.h ('k') | test/cctest/compiler/test-simplified-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 #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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 53
54 // static 54 // static
55 ElementAccess AccessBuilder::ForFixedArrayElement() { 55 ElementAccess AccessBuilder::ForFixedArrayElement() {
56 return {kTaggedBase, FixedArray::kHeaderSize, Type::Any(), kMachAnyTagged}; 56 return {kTaggedBase, FixedArray::kHeaderSize, Type::Any(), kMachAnyTagged};
57 } 57 }
58 58
59 59
60 // static 60 // static
61 ElementAccess AccessBuilder::ForBackingStoreElement(MachineType rep) {
62 return {kUntaggedBase, kNonHeapObjectHeaderSize - kHeapObjectTag, Type::Any(),
63 rep};
64 }
65
66
67 // static
68 ElementAccess AccessBuilder::ForTypedArrayElement(ExternalArrayType type, 61 ElementAccess AccessBuilder::ForTypedArrayElement(ExternalArrayType type,
69 bool is_external) { 62 bool is_external) {
70 BaseTaggedness taggedness = is_external ? kUntaggedBase : kTaggedBase; 63 BaseTaggedness taggedness = is_external ? kUntaggedBase : kTaggedBase;
71 int header_size = is_external ? 0 : FixedTypedArrayBase::kDataOffset; 64 int header_size = is_external ? 0 : FixedTypedArrayBase::kDataOffset;
72 switch (type) { 65 switch (type) {
73 case kExternalInt8Array: 66 case kExternalInt8Array:
74 return {taggedness, header_size, Type::Signed32(), kMachInt8}; 67 return {taggedness, header_size, Type::Signed32(), kMachInt8};
75 case kExternalUint8Array: 68 case kExternalUint8Array:
76 case kExternalUint8ClampedArray: 69 case kExternalUint8ClampedArray:
77 return {taggedness, header_size, Type::Unsigned32(), kMachUint8}; 70 return {taggedness, header_size, Type::Unsigned32(), kMachUint8};
(...skipping 10 matching lines...) Expand all
88 case kExternalFloat64Array: 81 case kExternalFloat64Array:
89 return {taggedness, header_size, Type::Number(), kRepFloat64}; 82 return {taggedness, header_size, Type::Number(), kRepFloat64};
90 } 83 }
91 UNREACHABLE(); 84 UNREACHABLE();
92 return {kUntaggedBase, 0, Type::None(), kMachNone}; 85 return {kUntaggedBase, 0, Type::None(), kMachNone};
93 } 86 }
94 87
95 } // namespace compiler 88 } // namespace compiler
96 } // namespace internal 89 } // namespace internal
97 } // namespace v8 90 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | test/cctest/compiler/test-simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698