Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: src/compiler/raw-machine-assembler.h

Issue 596703004: [turbofan] Add backend support for float32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/compiler/register-allocator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/compiler/register-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698