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/simplified-operator.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/simplified-operator.h ('k') | src/compiler/typer.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/simplified-operator.h" 5 #include "src/compiler/simplified-operator.h"
6 6
7 #include "src/base/lazy-instance.h" 7 #include "src/base/lazy-instance.h"
8 #include "src/compiler/opcodes.h" 8 #include "src/compiler/opcodes.h"
9 #include "src/compiler/operator.h" 9 #include "src/compiler/operator.h"
10 #include "src/types-inl.h" 10 #include "src/types-inl.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 V(StringLessThan, Operator::kNoProperties, 2) \ 128 V(StringLessThan, Operator::kNoProperties, 2) \
129 V(StringLessThanOrEqual, Operator::kNoProperties, 2) \ 129 V(StringLessThanOrEqual, Operator::kNoProperties, 2) \
130 V(StringAdd, Operator::kNoProperties, 2) \ 130 V(StringAdd, Operator::kNoProperties, 2) \
131 V(ChangeTaggedToInt32, Operator::kNoProperties, 1) \ 131 V(ChangeTaggedToInt32, Operator::kNoProperties, 1) \
132 V(ChangeTaggedToUint32, Operator::kNoProperties, 1) \ 132 V(ChangeTaggedToUint32, Operator::kNoProperties, 1) \
133 V(ChangeTaggedToFloat64, Operator::kNoProperties, 1) \ 133 V(ChangeTaggedToFloat64, Operator::kNoProperties, 1) \
134 V(ChangeInt32ToTagged, Operator::kNoProperties, 1) \ 134 V(ChangeInt32ToTagged, Operator::kNoProperties, 1) \
135 V(ChangeUint32ToTagged, Operator::kNoProperties, 1) \ 135 V(ChangeUint32ToTagged, Operator::kNoProperties, 1) \
136 V(ChangeFloat64ToTagged, Operator::kNoProperties, 1) \ 136 V(ChangeFloat64ToTagged, Operator::kNoProperties, 1) \
137 V(ChangeBoolToBit, Operator::kNoProperties, 1) \ 137 V(ChangeBoolToBit, Operator::kNoProperties, 1) \
138 V(ChangeBitToBool, Operator::kNoProperties, 1) 138 V(ChangeBitToBool, Operator::kNoProperties, 1) \
139 V(ObjectIsSmi, Operator::kNoProperties, 1) \
140 V(ObjectIsNonNegativeSmi, Operator::kNoProperties, 1)
139 141
140 142
141 #define ACCESS_OP_LIST(V) \ 143 #define ACCESS_OP_LIST(V) \
142 V(LoadField, FieldAccess, Operator::kNoWrite, 1, 1) \ 144 V(LoadField, FieldAccess, Operator::kNoWrite, 1, 1) \
143 V(StoreField, FieldAccess, Operator::kNoRead, 2, 0) \ 145 V(StoreField, FieldAccess, Operator::kNoRead, 2, 0) \
144 V(LoadElement, ElementAccess, Operator::kNoWrite, 3, 1) \ 146 V(LoadElement, ElementAccess, Operator::kNoWrite, 3, 1) \
145 V(StoreElement, ElementAccess, Operator::kNoRead, 4, 0) 147 V(StoreElement, ElementAccess, Operator::kNoRead, 4, 0)
146 148
147 149
148 struct SimplifiedOperatorBuilderImpl FINAL { 150 struct SimplifiedOperatorBuilderImpl FINAL {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 return new (zone()) \ 187 return new (zone()) \
186 Operator1<Type>(IrOpcode::k##Name, Operator::kNoThrow | properties, \ 188 Operator1<Type>(IrOpcode::k##Name, Operator::kNoThrow | properties, \
187 input_count, output_count, #Name, access); \ 189 input_count, output_count, #Name, access); \
188 } 190 }
189 ACCESS_OP_LIST(ACCESS) 191 ACCESS_OP_LIST(ACCESS)
190 #undef ACCESS 192 #undef ACCESS
191 193
192 } // namespace compiler 194 } // namespace compiler
193 } // namespace internal 195 } // namespace internal
194 } // namespace v8 196 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698