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

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

Issue 612043003: Add inlining for intrinsics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Move decls. 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') | src/compiler/graph.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 46
47 // static 47 // static
48 FieldAccess AccessBuilder::ForExternalArrayPointer() { 48 FieldAccess AccessBuilder::ForExternalArrayPointer() {
49 return {kTaggedBase, ExternalArray::kExternalPointerOffset, 49 return {kTaggedBase, ExternalArray::kExternalPointerOffset,
50 MaybeHandle<Name>(), Type::UntaggedPtr(), kMachPtr}; 50 MaybeHandle<Name>(), Type::UntaggedPtr(), kMachPtr};
51 } 51 }
52 52
53 53
54 // static 54 // static
55 FieldAccess AccessBuilder::ForMapInstanceType() {
56 return {kTaggedBase, Map::kInstanceTypeOffset, Handle<Name>(),
57 Type::UntaggedInt8(), kMachUint8};
58 }
59
60
61 // static
62 FieldAccess AccessBuilder::ForValue() {
63 return {kTaggedBase, JSValue::kValueOffset, Handle<Name>(), Type::Any(),
64 kMachAnyTagged};
65 }
66
67
68 // static
55 ElementAccess AccessBuilder::ForFixedArrayElement() { 69 ElementAccess AccessBuilder::ForFixedArrayElement() {
56 return {kNoBoundsCheck, kTaggedBase, FixedArray::kHeaderSize, Type::Any(), 70 return {kNoBoundsCheck, kTaggedBase, FixedArray::kHeaderSize, Type::Any(),
57 kMachAnyTagged}; 71 kMachAnyTagged};
58 } 72 }
59 73
60 74
61 // static 75 // static
62 ElementAccess AccessBuilder::ForTypedArrayElement(ExternalArrayType type, 76 ElementAccess AccessBuilder::ForTypedArrayElement(ExternalArrayType type,
63 bool is_external) { 77 bool is_external) {
64 BaseTaggedness taggedness = is_external ? kUntaggedBase : kTaggedBase; 78 BaseTaggedness taggedness = is_external ? kUntaggedBase : kTaggedBase;
(...skipping 25 matching lines...) Expand all
90 return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Number(), 104 return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Number(),
91 kRepFloat64}; 105 kRepFloat64};
92 } 106 }
93 UNREACHABLE(); 107 UNREACHABLE();
94 return {kTypedArrayBoundsCheck, kUntaggedBase, 0, Type::None(), kMachNone}; 108 return {kTypedArrayBoundsCheck, kUntaggedBase, 0, Type::None(), kMachNone};
95 } 109 }
96 110
97 } // namespace compiler 111 } // namespace compiler
98 } // namespace internal 112 } // namespace internal
99 } // namespace v8 113 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/graph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698