Chromium Code Reviews| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 202 | 202 |
| 203 Node* Parameter(int value); | 203 Node* Parameter(int value); |
| 204 void Return(Node* value); | 204 void Return(Node* value); |
| 205 | 205 |
| 206 void Bind(Label* label); | 206 void Bind(Label* label); |
| 207 void Goto(Label* label); | 207 void Goto(Label* label); |
| 208 void GotoIf(Node* condition, Label* true_label); | 208 void GotoIf(Node* condition, Label* true_label); |
| 209 void GotoUnless(Node* condition, Label* false_label); | 209 void GotoUnless(Node* condition, Label* false_label); |
| 210 void Branch(Node* condition, Label* true_label, Label* false_label); | 210 void Branch(Node* condition, Label* true_label, Label* false_label); |
| 211 | 211 |
| 212 void DebugBreak(); | |
|
Michael Starzinger
2016/05/19 08:53:23
nit: Can we move this up or down a few lines? Righ
danno
2016/05/19 09:05:04
Done.
| |
| 213 | |
| 212 void Switch(Node* index, Label* default_label, int32_t* case_values, | 214 void Switch(Node* index, Label* default_label, int32_t* case_values, |
| 213 Label** case_labels, size_t case_count); | 215 Label** case_labels, size_t case_count); |
| 214 | 216 |
| 215 // Access to the frame pointer | 217 // Access to the frame pointer |
| 216 Node* LoadFramePointer(); | 218 Node* LoadFramePointer(); |
| 217 Node* LoadParentFramePointer(); | 219 Node* LoadParentFramePointer(); |
| 218 | 220 |
| 219 // Access to the stack pointer | 221 // Access to the stack pointer |
| 220 Node* LoadStackPointer(); | 222 Node* LoadStackPointer(); |
| 221 | 223 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 394 // Map of variables to the list of value nodes that have been added from each | 396 // Map of variables to the list of value nodes that have been added from each |
| 395 // merge path in their order of merging. | 397 // merge path in their order of merging. |
| 396 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 398 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; |
| 397 }; | 399 }; |
| 398 | 400 |
| 399 } // namespace compiler | 401 } // namespace compiler |
| 400 } // namespace internal | 402 } // namespace internal |
| 401 } // namespace v8 | 403 } // namespace v8 |
| 402 | 404 |
| 403 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 405 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
| OLD | NEW |