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

Side by Side Diff: src/code-stub-assembler.h

Issue 2560663002: [stubs] Fix issues found by the machine graph verifier in load/store IC stubs. (Closed)
Patch Set: Created 4 years 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/code-stub-assembler.cc » ('j') | src/ic/accessor-assembler.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #ifndef V8_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 Node* SelectConstant(Node* condition, Node* true_value, Node* false_value, 176 Node* SelectConstant(Node* condition, Node* true_value, Node* false_value,
177 MachineRepresentation rep); 177 MachineRepresentation rep);
178 178
179 Node* SelectInt32Constant(Node* condition, int true_value, int false_value); 179 Node* SelectInt32Constant(Node* condition, int true_value, int false_value);
180 Node* SelectIntPtrConstant(Node* condition, int true_value, int false_value); 180 Node* SelectIntPtrConstant(Node* condition, int true_value, int false_value);
181 Node* SelectBooleanConstant(Node* condition); 181 Node* SelectBooleanConstant(Node* condition);
182 Node* SelectTaggedConstant(Node* condition, Node* true_value, 182 Node* SelectTaggedConstant(Node* condition, Node* true_value,
183 Node* false_value); 183 Node* false_value);
184 184
185 Node* TruncateWordToWord32(Node* value);
186
185 // Check a value for smi-ness 187 // Check a value for smi-ness
186 Node* TaggedIsSmi(Node* a); 188 Node* TaggedIsSmi(Node* a);
187 Node* TaggedIsNotSmi(Node* a); 189 Node* TaggedIsNotSmi(Node* a);
188 // Check that the value is a non-negative smi. 190 // Check that the value is a non-negative smi.
189 Node* WordIsPositiveSmi(Node* a); 191 Node* WordIsPositiveSmi(Node* a);
190 // Check that a word has a word-aligned address. 192 // Check that a word has a word-aligned address.
191 Node* WordIsWordAligned(Node* word); 193 Node* WordIsWordAligned(Node* word);
192 Node* WordIsPowerOfTwo(Node* value); 194 Node* WordIsPowerOfTwo(Node* value);
193 195
194 void BranchIfSmiEqual(Node* a, Node* b, Label* if_true, Label* if_false) { 196 void BranchIfSmiEqual(Node* a, Node* b, Label* if_true, Label* if_false) {
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 } 1131 }
1130 #else 1132 #else
1131 #define CSA_SLOW_ASSERT(csa, x) ((void)0) 1133 #define CSA_SLOW_ASSERT(csa, x) ((void)0)
1132 #endif 1134 #endif
1133 1135
1134 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1136 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1135 1137
1136 } // namespace internal 1138 } // namespace internal
1137 } // namespace v8 1139 } // namespace v8
1138 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1140 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | src/ic/accessor-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698