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_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_ |
6 #define V8_COMPILER_CODE_ASSEMBLER_H_ | 6 #define V8_COMPILER_CODE_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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 238 |
239 void DebugBreak(); | 239 void DebugBreak(); |
240 void Comment(const char* format, ...); | 240 void Comment(const char* format, ...); |
241 | 241 |
242 void Bind(Label* label); | 242 void Bind(Label* label); |
243 void Goto(Label* label); | 243 void Goto(Label* label); |
244 void GotoIf(Node* condition, Label* true_label); | 244 void GotoIf(Node* condition, Label* true_label); |
245 void GotoUnless(Node* condition, Label* false_label); | 245 void GotoUnless(Node* condition, Label* false_label); |
246 void Branch(Node* condition, Label* true_label, Label* false_label); | 246 void Branch(Node* condition, Label* true_label, Label* false_label); |
247 | 247 |
248 void Switch(Node* index, Label* default_label, int32_t* case_values, | 248 void Switch(Node* index, Label* default_label, const int32_t* case_values, |
249 Label** case_labels, size_t case_count); | 249 Label** case_labels, size_t case_count); |
250 | 250 |
251 Node* Select(Node* condition, Node* true_value, Node* false_value, | 251 Node* Select(Node* condition, Node* true_value, Node* false_value, |
252 MachineRepresentation rep = MachineRepresentation::kTagged); | 252 MachineRepresentation rep = MachineRepresentation::kTagged); |
253 | 253 |
254 // Access to the frame pointer | 254 // Access to the frame pointer |
255 Node* LoadFramePointer(); | 255 Node* LoadFramePointer(); |
256 Node* LoadParentFramePointer(); | 256 Node* LoadParentFramePointer(); |
257 | 257 |
258 // Access to the stack pointer | 258 // Access to the stack pointer |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 // Map of variables to the list of value nodes that have been added from each | 452 // Map of variables to the list of value nodes that have been added from each |
453 // merge path in their order of merging. | 453 // merge path in their order of merging. |
454 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 454 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; |
455 }; | 455 }; |
456 | 456 |
457 } // namespace compiler | 457 } // namespace compiler |
458 } // namespace internal | 458 } // namespace internal |
459 } // namespace v8 | 459 } // namespace v8 |
460 | 460 |
461 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 461 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |