| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_RAW_MACHINE_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
| 9 #include "src/compiler/graph-builder.h" | 9 #include "src/compiler/graph-builder.h" |
| 10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 return NewNode(machine()->Float64RoundTiesAway(), a); | 393 return NewNode(machine()->Float64RoundTiesAway(), a); |
| 394 } | 394 } |
| 395 | 395 |
| 396 // Parameters. | 396 // Parameters. |
| 397 Node* Parameter(size_t index); | 397 Node* Parameter(size_t index); |
| 398 | 398 |
| 399 // Control flow. | 399 // Control flow. |
| 400 Label* Exit(); | 400 Label* Exit(); |
| 401 void Goto(Label* label); | 401 void Goto(Label* label); |
| 402 void Branch(Node* condition, Label* true_val, Label* false_val); | 402 void Branch(Node* condition, Label* true_val, Label* false_val); |
| 403 void Switch(Node* index, Label** succ_labels, size_t succ_count); | 403 void Switch(Node* index, Label* default_label, int32_t* case_values, |
| 404 Label** case_labels, size_t case_count); |
| 404 // Call through CallFunctionStub with lazy deopt and frame-state. | 405 // Call through CallFunctionStub with lazy deopt and frame-state. |
| 405 Node* CallFunctionStub0(Node* function, Node* receiver, Node* context, | 406 Node* CallFunctionStub0(Node* function, Node* receiver, Node* context, |
| 406 Node* frame_state, CallFunctionFlags flags); | 407 Node* frame_state, CallFunctionFlags flags); |
| 407 // Call to a JS function with zero parameters. | 408 // Call to a JS function with zero parameters. |
| 408 Node* CallJS0(Node* function, Node* receiver, Node* context, | 409 Node* CallJS0(Node* function, Node* receiver, Node* context, |
| 409 Node* frame_state); | 410 Node* frame_state); |
| 410 // Call to a runtime function with zero parameters. | 411 // Call to a runtime function with zero parameters. |
| 411 Node* CallRuntime1(Runtime::FunctionId function, Node* arg0, Node* context, | 412 Node* CallRuntime1(Runtime::FunctionId function, Node* arg0, Node* context, |
| 412 Node* frame_state); | 413 Node* frame_state); |
| 413 void Return(Node* value); | 414 void Return(Node* value); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 BasicBlock* current_block_; | 455 BasicBlock* current_block_; |
| 455 | 456 |
| 456 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 457 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
| 457 }; | 458 }; |
| 458 | 459 |
| 459 } // namespace compiler | 460 } // namespace compiler |
| 460 } // namespace internal | 461 } // namespace internal |
| 461 } // namespace v8 | 462 } // namespace v8 |
| 462 | 463 |
| 463 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 464 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |