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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 } | 333 } |
334 Node* Float32Sub(Node* a, Node* b) { | 334 Node* Float32Sub(Node* a, Node* b) { |
335 return NewNode(machine()->Float32Sub(), a, b); | 335 return NewNode(machine()->Float32Sub(), a, b); |
336 } | 336 } |
337 Node* Float32Mul(Node* a, Node* b) { | 337 Node* Float32Mul(Node* a, Node* b) { |
338 return NewNode(machine()->Float32Mul(), a, b); | 338 return NewNode(machine()->Float32Mul(), a, b); |
339 } | 339 } |
340 Node* Float32Div(Node* a, Node* b) { | 340 Node* Float32Div(Node* a, Node* b) { |
341 return NewNode(machine()->Float32Div(), a, b); | 341 return NewNode(machine()->Float32Div(), a, b); |
342 } | 342 } |
| 343 Node* Float32Abs(Node* a) { return NewNode(machine()->Float32Abs(), a); } |
343 Node* Float32Sqrt(Node* a) { return NewNode(machine()->Float32Sqrt(), a); } | 344 Node* Float32Sqrt(Node* a) { return NewNode(machine()->Float32Sqrt(), a); } |
344 Node* Float32Equal(Node* a, Node* b) { | 345 Node* Float32Equal(Node* a, Node* b) { |
345 return NewNode(machine()->Float32Equal(), a, b); | 346 return NewNode(machine()->Float32Equal(), a, b); |
346 } | 347 } |
347 Node* Float32NotEqual(Node* a, Node* b) { | 348 Node* Float32NotEqual(Node* a, Node* b) { |
348 return WordBinaryNot(Float32Equal(a, b)); | 349 return WordBinaryNot(Float32Equal(a, b)); |
349 } | 350 } |
350 Node* Float32LessThan(Node* a, Node* b) { | 351 Node* Float32LessThan(Node* a, Node* b) { |
351 return NewNode(machine()->Float32LessThan(), a, b); | 352 return NewNode(machine()->Float32LessThan(), a, b); |
352 } | 353 } |
(...skipping 13 matching lines...) Expand all Loading... |
366 } | 367 } |
367 Node* Float64Mul(Node* a, Node* b) { | 368 Node* Float64Mul(Node* a, Node* b) { |
368 return NewNode(machine()->Float64Mul(), a, b); | 369 return NewNode(machine()->Float64Mul(), a, b); |
369 } | 370 } |
370 Node* Float64Div(Node* a, Node* b) { | 371 Node* Float64Div(Node* a, Node* b) { |
371 return NewNode(machine()->Float64Div(), a, b); | 372 return NewNode(machine()->Float64Div(), a, b); |
372 } | 373 } |
373 Node* Float64Mod(Node* a, Node* b) { | 374 Node* Float64Mod(Node* a, Node* b) { |
374 return NewNode(machine()->Float64Mod(), a, b); | 375 return NewNode(machine()->Float64Mod(), a, b); |
375 } | 376 } |
| 377 Node* Float64Abs(Node* a) { return NewNode(machine()->Float64Abs(), a); } |
376 Node* Float64Sqrt(Node* a) { return NewNode(machine()->Float64Sqrt(), a); } | 378 Node* Float64Sqrt(Node* a) { return NewNode(machine()->Float64Sqrt(), a); } |
377 Node* Float64Equal(Node* a, Node* b) { | 379 Node* Float64Equal(Node* a, Node* b) { |
378 return NewNode(machine()->Float64Equal(), a, b); | 380 return NewNode(machine()->Float64Equal(), a, b); |
379 } | 381 } |
380 Node* Float64NotEqual(Node* a, Node* b) { | 382 Node* Float64NotEqual(Node* a, Node* b) { |
381 return WordBinaryNot(Float64Equal(a, b)); | 383 return WordBinaryNot(Float64Equal(a, b)); |
382 } | 384 } |
383 Node* Float64LessThan(Node* a, Node* b) { | 385 Node* Float64LessThan(Node* a, Node* b) { |
384 return NewNode(machine()->Float64LessThan(), a, b); | 386 return NewNode(machine()->Float64LessThan(), a, b); |
385 } | 387 } |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 BasicBlock* current_block_; | 513 BasicBlock* current_block_; |
512 | 514 |
513 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 515 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
514 }; | 516 }; |
515 | 517 |
516 } // namespace compiler | 518 } // namespace compiler |
517 } // namespace internal | 519 } // namespace internal |
518 } // namespace v8 | 520 } // namespace v8 |
519 | 521 |
520 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 522 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |