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_MACHINE_NODE_FACTORY_H_ | 5 #ifndef V8_COMPILER_MACHINE_NODE_FACTORY_H_ |
6 #define V8_COMPILER_MACHINE_NODE_FACTORY_H_ | 6 #define V8_COMPILER_MACHINE_NODE_FACTORY_H_ |
7 | 7 |
8 #ifdef USE_SIMULATOR | 8 #ifdef USE_SIMULATOR |
9 #define MACHINE_ASSEMBLER_SUPPORTS_CALL_C 0 | 9 #define MACHINE_ASSEMBLER_SUPPORTS_CALL_C 0 |
10 #else | 10 #else |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 } | 351 } |
352 Node* ChangeFloat64ToUint32(Node* a) { | 352 Node* ChangeFloat64ToUint32(Node* a) { |
353 return NEW_NODE_1(MACHINE()->ChangeFloat64ToUint32(), a); | 353 return NEW_NODE_1(MACHINE()->ChangeFloat64ToUint32(), a); |
354 } | 354 } |
355 Node* ChangeInt32ToInt64(Node* a) { | 355 Node* ChangeInt32ToInt64(Node* a) { |
356 return NEW_NODE_1(MACHINE()->ChangeInt32ToInt64(), a); | 356 return NEW_NODE_1(MACHINE()->ChangeInt32ToInt64(), a); |
357 } | 357 } |
358 Node* ChangeUint32ToUint64(Node* a) { | 358 Node* ChangeUint32ToUint64(Node* a) { |
359 return NEW_NODE_1(MACHINE()->ChangeUint32ToUint64(), a); | 359 return NEW_NODE_1(MACHINE()->ChangeUint32ToUint64(), a); |
360 } | 360 } |
| 361 Node* TruncateFloat64ToInt32(Node* a) { |
| 362 return NEW_NODE_1(MACHINE()->TruncateFloat64ToInt32(), a); |
| 363 } |
361 Node* TruncateInt64ToInt32(Node* a) { | 364 Node* TruncateInt64ToInt32(Node* a) { |
362 return NEW_NODE_1(MACHINE()->TruncateInt64ToInt32(), a); | 365 return NEW_NODE_1(MACHINE()->TruncateInt64ToInt32(), a); |
363 } | 366 } |
364 | 367 |
365 #ifdef MACHINE_ASSEMBLER_SUPPORTS_CALL_C | 368 #ifdef MACHINE_ASSEMBLER_SUPPORTS_CALL_C |
366 // Call to C. | 369 // Call to C. |
367 Node* CallC(Node* function_address, MachineType return_type, | 370 Node* CallC(Node* function_address, MachineType return_type, |
368 MachineType* arg_types, Node** args, int n_args) { | 371 MachineType* arg_types, Node** args, int n_args) { |
369 CallDescriptor* descriptor = Linkage::GetSimplifiedCDescriptor( | 372 CallDescriptor* descriptor = Linkage::GetSimplifiedCDescriptor( |
370 ZONE(), n_args, return_type, arg_types); | 373 ZONE(), n_args, return_type, arg_types); |
(...skipping 14 matching lines...) Expand all Loading... |
385 #undef NEW_NODE_3 | 388 #undef NEW_NODE_3 |
386 #undef MACHINE | 389 #undef MACHINE |
387 #undef COMMON | 390 #undef COMMON |
388 #undef ZONE | 391 #undef ZONE |
389 | 392 |
390 } // namespace compiler | 393 } // namespace compiler |
391 } // namespace internal | 394 } // namespace internal |
392 } // namespace v8 | 395 } // namespace v8 |
393 | 396 |
394 #endif // V8_COMPILER_MACHINE_NODE_FACTORY_H_ | 397 #endif // V8_COMPILER_MACHINE_NODE_FACTORY_H_ |
OLD | NEW |