| 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 compiler::Node* LoadAndUntagToWord32Root(Heap::RootListIndex root_index); | 241 compiler::Node* LoadAndUntagToWord32Root(Heap::RootListIndex root_index); |
| 242 | 242 |
| 243 // Load the floating point value of a HeapNumber. | 243 // Load the floating point value of a HeapNumber. |
| 244 compiler::Node* LoadHeapNumberValue(compiler::Node* object); | 244 compiler::Node* LoadHeapNumberValue(compiler::Node* object); |
| 245 // Load the Map of an HeapObject. | 245 // Load the Map of an HeapObject. |
| 246 compiler::Node* LoadMap(compiler::Node* object); | 246 compiler::Node* LoadMap(compiler::Node* object); |
| 247 // Load the instance type of an HeapObject. | 247 // Load the instance type of an HeapObject. |
| 248 compiler::Node* LoadInstanceType(compiler::Node* object); | 248 compiler::Node* LoadInstanceType(compiler::Node* object); |
| 249 // Compare the instance the type of the object against the provided one. | 249 // Compare the instance the type of the object against the provided one. |
| 250 compiler::Node* HasInstanceType(compiler::Node* object, InstanceType type); | 250 compiler::Node* HasInstanceType(compiler::Node* object, InstanceType type); |
| 251 // Checks that given heap object has given instance type. | |
| 252 void AssertInstanceType(compiler::Node* object, InstanceType instance_type); | |
| 253 // Load the properties backing store of a JSObject. | 251 // Load the properties backing store of a JSObject. |
| 254 compiler::Node* LoadProperties(compiler::Node* object); | 252 compiler::Node* LoadProperties(compiler::Node* object); |
| 255 // Load the elements backing store of a JSObject. | 253 // Load the elements backing store of a JSObject. |
| 256 compiler::Node* LoadElements(compiler::Node* object); | 254 compiler::Node* LoadElements(compiler::Node* object); |
| 257 // Load the length of a JSArray instance. | 255 // Load the length of a JSArray instance. |
| 258 compiler::Node* LoadJSArrayLength(compiler::Node* array); | 256 compiler::Node* LoadJSArrayLength(compiler::Node* array); |
| 259 // Load the length of a fixed array base instance. | 257 // Load the length of a fixed array base instance. |
| 260 compiler::Node* LoadFixedArrayBaseLength(compiler::Node* array); | 258 compiler::Node* LoadFixedArrayBaseLength(compiler::Node* array); |
| 261 // Load the length of a fixed array base instance. | 259 // Load the length of a fixed array base instance. |
| 262 compiler::Node* LoadAndUntagFixedArrayBaseLength(compiler::Node* array); | 260 compiler::Node* LoadAndUntagFixedArrayBaseLength(compiler::Node* array); |
| (...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1175 static const int kElementLoopUnrollThreshold = 8; | 1173 static const int kElementLoopUnrollThreshold = 8; |
| 1176 }; | 1174 }; |
| 1177 | 1175 |
| 1178 #define CSA_ASSERT(x) Assert((x), #x, __FILE__, __LINE__) | 1176 #define CSA_ASSERT(x) Assert((x), #x, __FILE__, __LINE__) |
| 1179 | 1177 |
| 1180 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1178 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 1181 | 1179 |
| 1182 } // namespace internal | 1180 } // namespace internal |
| 1183 } // namespace v8 | 1181 } // namespace v8 |
| 1184 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1182 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |