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/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 } | 337 } |
338 Node* Float64LessThanOrEqual(Node* a, Node* b) { | 338 Node* Float64LessThanOrEqual(Node* a, Node* b) { |
339 return NewNode(machine()->Float64LessThanOrEqual(), a, b); | 339 return NewNode(machine()->Float64LessThanOrEqual(), a, b); |
340 } | 340 } |
341 Node* Float64GreaterThan(Node* a, Node* b) { return Float64LessThan(b, a); } | 341 Node* Float64GreaterThan(Node* a, Node* b) { return Float64LessThan(b, a); } |
342 Node* Float64GreaterThanOrEqual(Node* a, Node* b) { | 342 Node* Float64GreaterThanOrEqual(Node* a, Node* b) { |
343 return Float64LessThanOrEqual(b, a); | 343 return Float64LessThanOrEqual(b, a); |
344 } | 344 } |
345 | 345 |
346 // Conversions. | 346 // Conversions. |
| 347 Node* ChangeFloat32ToFloat64(Node* a) { |
| 348 return NewNode(machine()->ChangeFloat32ToFloat64(), a); |
| 349 } |
347 Node* ChangeInt32ToFloat64(Node* a) { | 350 Node* ChangeInt32ToFloat64(Node* a) { |
348 return NewNode(machine()->ChangeInt32ToFloat64(), a); | 351 return NewNode(machine()->ChangeInt32ToFloat64(), a); |
349 } | 352 } |
350 Node* ChangeUint32ToFloat64(Node* a) { | 353 Node* ChangeUint32ToFloat64(Node* a) { |
351 return NewNode(machine()->ChangeUint32ToFloat64(), a); | 354 return NewNode(machine()->ChangeUint32ToFloat64(), a); |
352 } | 355 } |
353 Node* ChangeFloat64ToInt32(Node* a) { | 356 Node* ChangeFloat64ToInt32(Node* a) { |
354 return NewNode(machine()->ChangeFloat64ToInt32(), a); | 357 return NewNode(machine()->ChangeFloat64ToInt32(), a); |
355 } | 358 } |
356 Node* ChangeFloat64ToUint32(Node* a) { | 359 Node* ChangeFloat64ToUint32(Node* a) { |
357 return NewNode(machine()->ChangeFloat64ToUint32(), a); | 360 return NewNode(machine()->ChangeFloat64ToUint32(), a); |
358 } | 361 } |
359 Node* ChangeInt32ToInt64(Node* a) { | 362 Node* ChangeInt32ToInt64(Node* a) { |
360 return NewNode(machine()->ChangeInt32ToInt64(), a); | 363 return NewNode(machine()->ChangeInt32ToInt64(), a); |
361 } | 364 } |
362 Node* ChangeUint32ToUint64(Node* a) { | 365 Node* ChangeUint32ToUint64(Node* a) { |
363 return NewNode(machine()->ChangeUint32ToUint64(), a); | 366 return NewNode(machine()->ChangeUint32ToUint64(), a); |
364 } | 367 } |
| 368 Node* TruncateFloat64ToFloat32(Node* a) { |
| 369 return NewNode(machine()->TruncateFloat64ToFloat32(), a); |
| 370 } |
365 Node* TruncateFloat64ToInt32(Node* a) { | 371 Node* TruncateFloat64ToInt32(Node* a) { |
366 return NewNode(machine()->TruncateFloat64ToInt32(), a); | 372 return NewNode(machine()->TruncateFloat64ToInt32(), a); |
367 } | 373 } |
368 Node* TruncateInt64ToInt32(Node* a) { | 374 Node* TruncateInt64ToInt32(Node* a) { |
369 return NewNode(machine()->TruncateInt64ToInt32(), a); | 375 return NewNode(machine()->TruncateInt64ToInt32(), a); |
370 } | 376 } |
371 | 377 |
372 // Parameters. | 378 // Parameters. |
373 Node* Parameter(size_t index); | 379 Node* Parameter(size_t index); |
374 | 380 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 BasicBlock* current_block_; | 435 BasicBlock* current_block_; |
430 | 436 |
431 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 437 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
432 }; | 438 }; |
433 | 439 |
434 } // namespace compiler | 440 } // namespace compiler |
435 } // namespace internal | 441 } // namespace internal |
436 } // namespace v8 | 442 } // namespace v8 |
437 | 443 |
438 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 444 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |