| OLD | NEW |
| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // Allocate an object of the given size. | 143 // Allocate an object of the given size. |
| 144 compiler::Node* Allocate(compiler::Node* size, AllocationFlags flags = kNone); | 144 compiler::Node* Allocate(compiler::Node* size, AllocationFlags flags = kNone); |
| 145 compiler::Node* Allocate(int size, AllocationFlags flags = kNone); | 145 compiler::Node* Allocate(int size, AllocationFlags flags = kNone); |
| 146 compiler::Node* InnerAllocate(compiler::Node* previous, int offset); | 146 compiler::Node* InnerAllocate(compiler::Node* previous, int offset); |
| 147 compiler::Node* InnerAllocate(compiler::Node* previous, | 147 compiler::Node* InnerAllocate(compiler::Node* previous, |
| 148 compiler::Node* offset); | 148 compiler::Node* offset); |
| 149 | 149 |
| 150 void Assert(compiler::Node* condition); | 150 void Assert(compiler::Node* condition); |
| 151 | 151 |
| 152 // Check a value for smi-ness | 152 // Check a value for smi-ness |
| 153 compiler::Node* WordIsSmi(compiler::Node* a); | 153 compiler::Node* TaggedIsSmi(compiler::Node* a); |
| 154 // Check that the value is a non-negative smi. | 154 // Check that the value is a non-negative smi. |
| 155 compiler::Node* WordIsPositiveSmi(compiler::Node* a); | 155 compiler::Node* WordIsPositiveSmi(compiler::Node* a); |
| 156 | 156 |
| 157 void BranchIfSmiEqual(compiler::Node* a, compiler::Node* b, Label* if_true, | 157 void BranchIfSmiEqual(compiler::Node* a, compiler::Node* b, Label* if_true, |
| 158 Label* if_false) { | 158 Label* if_false) { |
| 159 BranchIf(SmiEqual(a, b), if_true, if_false); | 159 BranchIf(SmiEqual(a, b), if_true, if_false); |
| 160 } | 160 } |
| 161 | 161 |
| 162 void BranchIfSmiLessThan(compiler::Node* a, compiler::Node* b, Label* if_true, | 162 void BranchIfSmiLessThan(compiler::Node* a, compiler::Node* b, Label* if_true, |
| 163 Label* if_false) { | 163 Label* if_false) { |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 Label* bailout); | 958 Label* bailout); |
| 959 | 959 |
| 960 static const int kElementLoopUnrollThreshold = 8; | 960 static const int kElementLoopUnrollThreshold = 8; |
| 961 }; | 961 }; |
| 962 | 962 |
| 963 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 963 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 964 | 964 |
| 965 } // namespace internal | 965 } // namespace internal |
| 966 } // namespace v8 | 966 } // namespace v8 |
| 967 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 967 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |