| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_COMPILER_CODE_STUB_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
| 6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_ | 6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 // Clients of this interface shouldn't depend on lots of compiler internals. | 10 // Clients of this interface shouldn't depend on lots of compiler internals. |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 // =========================================================================== | 98 // =========================================================================== |
| 99 // Base Assembler | 99 // Base Assembler |
| 100 // =========================================================================== | 100 // =========================================================================== |
| 101 | 101 |
| 102 // Constants. | 102 // Constants. |
| 103 Node* Int32Constant(int value); | 103 Node* Int32Constant(int value); |
| 104 Node* IntPtrConstant(intptr_t value); | 104 Node* IntPtrConstant(intptr_t value); |
| 105 Node* NumberConstant(double value); | 105 Node* NumberConstant(double value); |
| 106 Node* SmiConstant(Smi* value); |
| 106 Node* HeapConstant(Handle<HeapObject> object); | 107 Node* HeapConstant(Handle<HeapObject> object); |
| 107 Node* BooleanConstant(bool value); | 108 Node* BooleanConstant(bool value); |
| 108 Node* ExternalConstant(ExternalReference address); | 109 Node* ExternalConstant(ExternalReference address); |
| 109 | 110 |
| 110 Node* Parameter(int value); | 111 Node* Parameter(int value); |
| 111 void Return(Node* value); | 112 void Return(Node* value); |
| 112 | 113 |
| 113 void Bind(Label* label); | 114 void Bind(Label* label); |
| 114 void Goto(Label* label); | 115 void Goto(Label* label); |
| 115 void Branch(Node* condition, Label* true_label, Label* false_label); | 116 void Branch(Node* condition, Label* true_label, Label* false_label); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 Node** args, size_t result_size = 1); | 189 Node** args, size_t result_size = 1); |
| 189 | 190 |
| 190 // =========================================================================== | 191 // =========================================================================== |
| 191 // Macros | 192 // Macros |
| 192 // =========================================================================== | 193 // =========================================================================== |
| 193 | 194 |
| 194 // Tag and untag Smi values. | 195 // Tag and untag Smi values. |
| 195 Node* SmiTag(Node* value); | 196 Node* SmiTag(Node* value); |
| 196 Node* SmiUntag(Node* value); | 197 Node* SmiUntag(Node* value); |
| 197 | 198 |
| 199 // Smi operations. |
| 200 Node* SmiAdd(Node* lhs, Node* rhs); |
| 201 |
| 198 // Load a value from the root array. | 202 // Load a value from the root array. |
| 199 Node* LoadRoot(Heap::RootListIndex root_index); | 203 Node* LoadRoot(Heap::RootListIndex root_index); |
| 200 | 204 |
| 201 // Check a value for smi-ness | 205 // Check a value for smi-ness |
| 202 Node* WordIsSmi(Node* a); | 206 Node* WordIsSmi(Node* a); |
| 203 | 207 |
| 204 // Load an object pointer from a buffer that isn't in the heap. | 208 // Load an object pointer from a buffer that isn't in the heap. |
| 205 Node* LoadBufferObject(Node* buffer, int offset); | 209 Node* LoadBufferObject(Node* buffer, int offset); |
| 206 // Load a field from an object on the heap. | 210 // Load a field from an object on the heap. |
| 207 Node* LoadObjectField(Node* object, int offset); | 211 Node* LoadObjectField(Node* object, int offset); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 // Map of variables to the list of value nodes that have been added from each | 267 // Map of variables to the list of value nodes that have been added from each |
| 264 // merge path in their order of merging. | 268 // merge path in their order of merging. |
| 265 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 269 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; |
| 266 }; | 270 }; |
| 267 | 271 |
| 268 } // namespace compiler | 272 } // namespace compiler |
| 269 } // namespace internal | 273 } // namespace internal |
| 270 } // namespace v8 | 274 } // namespace v8 |
| 271 | 275 |
| 272 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ | 276 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |