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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 Node* Float64Constant(double value); | 229 Node* Float64Constant(double value); |
230 Node* NaNConstant(); | 230 Node* NaNConstant(); |
231 | 231 |
232 bool ToInt32Constant(Node* node, int32_t& out_value); | 232 bool ToInt32Constant(Node* node, int32_t& out_value); |
233 bool ToInt64Constant(Node* node, int64_t& out_value); | 233 bool ToInt64Constant(Node* node, int64_t& out_value); |
234 bool ToSmiConstant(Node* node, Smi*& out_value); | 234 bool ToSmiConstant(Node* node, Smi*& out_value); |
235 bool ToIntPtrConstant(Node* node, intptr_t& out_value); | 235 bool ToIntPtrConstant(Node* node, intptr_t& out_value); |
236 | 236 |
237 Node* Parameter(int value); | 237 Node* Parameter(int value); |
238 void Return(Node* value); | 238 void Return(Node* value); |
239 void PopAndReturn(Node* pop, Node* value); | |
240 | 239 |
241 void DebugBreak(); | 240 void DebugBreak(); |
242 void Comment(const char* format, ...); | 241 void Comment(const char* format, ...); |
243 | 242 |
244 void Bind(Label* label); | 243 void Bind(Label* label); |
245 void Goto(Label* label); | 244 void Goto(Label* label); |
246 void GotoIf(Node* condition, Label* true_label); | 245 void GotoIf(Node* condition, Label* true_label); |
247 void GotoUnless(Node* condition, Label* false_label); | 246 void GotoUnless(Node* condition, Label* false_label); |
248 void Branch(Node* condition, Label* true_label, Label* false_label); | 247 void Branch(Node* condition, Label* true_label, Label* false_label); |
249 | 248 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 // Map of variables to the list of value nodes that have been added from each | 515 // Map of variables to the list of value nodes that have been added from each |
517 // merge path in their order of merging. | 516 // merge path in their order of merging. |
518 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 517 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; |
519 }; | 518 }; |
520 | 519 |
521 } // namespace compiler | 520 } // namespace compiler |
522 } // namespace internal | 521 } // namespace internal |
523 } // namespace v8 | 522 } // namespace v8 |
524 | 523 |
525 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 524 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |