| 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/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
| 10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 } | 342 } |
| 343 Node* Float32Sub(Node* a, Node* b) { | 343 Node* Float32Sub(Node* a, Node* b) { |
| 344 return NewNode(machine()->Float32Sub(), a, b); | 344 return NewNode(machine()->Float32Sub(), a, b); |
| 345 } | 345 } |
| 346 Node* Float32Mul(Node* a, Node* b) { | 346 Node* Float32Mul(Node* a, Node* b) { |
| 347 return NewNode(machine()->Float32Mul(), a, b); | 347 return NewNode(machine()->Float32Mul(), a, b); |
| 348 } | 348 } |
| 349 Node* Float32Div(Node* a, Node* b) { | 349 Node* Float32Div(Node* a, Node* b) { |
| 350 return NewNode(machine()->Float32Div(), a, b); | 350 return NewNode(machine()->Float32Div(), a, b); |
| 351 } | 351 } |
| 352 Node* Float32Max(Node* a, Node* b) { |
| 353 return NewNode(machine()->Float32Max().op(), a, b); |
| 354 } |
| 355 Node* Float32Min(Node* a, Node* b) { |
| 356 return NewNode(machine()->Float32Min().op(), a, b); |
| 357 } |
| 352 Node* Float32Abs(Node* a) { return NewNode(machine()->Float32Abs(), a); } | 358 Node* Float32Abs(Node* a) { return NewNode(machine()->Float32Abs(), a); } |
| 353 Node* Float32Sqrt(Node* a) { return NewNode(machine()->Float32Sqrt(), a); } | 359 Node* Float32Sqrt(Node* a) { return NewNode(machine()->Float32Sqrt(), a); } |
| 354 Node* Float32Equal(Node* a, Node* b) { | 360 Node* Float32Equal(Node* a, Node* b) { |
| 355 return NewNode(machine()->Float32Equal(), a, b); | 361 return NewNode(machine()->Float32Equal(), a, b); |
| 356 } | 362 } |
| 357 Node* Float32NotEqual(Node* a, Node* b) { | 363 Node* Float32NotEqual(Node* a, Node* b) { |
| 358 return WordBinaryNot(Float32Equal(a, b)); | 364 return WordBinaryNot(Float32Equal(a, b)); |
| 359 } | 365 } |
| 360 Node* Float32LessThan(Node* a, Node* b) { | 366 Node* Float32LessThan(Node* a, Node* b) { |
| 361 return NewNode(machine()->Float32LessThan(), a, b); | 367 return NewNode(machine()->Float32LessThan(), a, b); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 376 } | 382 } |
| 377 Node* Float64Mul(Node* a, Node* b) { | 383 Node* Float64Mul(Node* a, Node* b) { |
| 378 return NewNode(machine()->Float64Mul(), a, b); | 384 return NewNode(machine()->Float64Mul(), a, b); |
| 379 } | 385 } |
| 380 Node* Float64Div(Node* a, Node* b) { | 386 Node* Float64Div(Node* a, Node* b) { |
| 381 return NewNode(machine()->Float64Div(), a, b); | 387 return NewNode(machine()->Float64Div(), a, b); |
| 382 } | 388 } |
| 383 Node* Float64Mod(Node* a, Node* b) { | 389 Node* Float64Mod(Node* a, Node* b) { |
| 384 return NewNode(machine()->Float64Mod(), a, b); | 390 return NewNode(machine()->Float64Mod(), a, b); |
| 385 } | 391 } |
| 392 Node* Float64Max(Node* a, Node* b) { |
| 393 return NewNode(machine()->Float64Max().op(), a, b); |
| 394 } |
| 395 Node* Float64Min(Node* a, Node* b) { |
| 396 return NewNode(machine()->Float64Min().op(), a, b); |
| 397 } |
| 386 Node* Float64Abs(Node* a) { return NewNode(machine()->Float64Abs(), a); } | 398 Node* Float64Abs(Node* a) { return NewNode(machine()->Float64Abs(), a); } |
| 387 Node* Float64Sqrt(Node* a) { return NewNode(machine()->Float64Sqrt(), a); } | 399 Node* Float64Sqrt(Node* a) { return NewNode(machine()->Float64Sqrt(), a); } |
| 388 Node* Float64Equal(Node* a, Node* b) { | 400 Node* Float64Equal(Node* a, Node* b) { |
| 389 return NewNode(machine()->Float64Equal(), a, b); | 401 return NewNode(machine()->Float64Equal(), a, b); |
| 390 } | 402 } |
| 391 Node* Float64NotEqual(Node* a, Node* b) { | 403 Node* Float64NotEqual(Node* a, Node* b) { |
| 392 return WordBinaryNot(Float64Equal(a, b)); | 404 return WordBinaryNot(Float64Equal(a, b)); |
| 393 } | 405 } |
| 394 Node* Float64LessThan(Node* a, Node* b) { | 406 Node* Float64LessThan(Node* a, Node* b) { |
| 395 return NewNode(machine()->Float64LessThan(), a, b); | 407 return NewNode(machine()->Float64LessThan(), a, b); |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 BasicBlock* current_block_; | 602 BasicBlock* current_block_; |
| 591 | 603 |
| 592 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 604 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
| 593 }; | 605 }; |
| 594 | 606 |
| 595 } // namespace compiler | 607 } // namespace compiler |
| 596 } // namespace internal | 608 } // namespace internal |
| 597 } // namespace v8 | 609 } // namespace v8 |
| 598 | 610 |
| 599 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 611 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |