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

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

Issue 1128133003: [turbofan] Make an OptionalOperator for MachineOperatorBuilder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
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/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
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* Float32Abs(Node* a) { return NewNode(machine()->Float32Abs().op(), a); }
344 Node* Float32Sqrt(Node* a) { return NewNode(machine()->Float32Sqrt(), a); } 344 Node* Float32Sqrt(Node* a) { return NewNode(machine()->Float32Sqrt(), a); }
345 Node* Float32Equal(Node* a, Node* b) { 345 Node* Float32Equal(Node* a, Node* b) {
346 return NewNode(machine()->Float32Equal(), a, b); 346 return NewNode(machine()->Float32Equal(), a, b);
347 } 347 }
348 Node* Float32NotEqual(Node* a, Node* b) { 348 Node* Float32NotEqual(Node* a, Node* b) {
349 return WordBinaryNot(Float32Equal(a, b)); 349 return WordBinaryNot(Float32Equal(a, b));
350 } 350 }
351 Node* Float32LessThan(Node* a, Node* b) { 351 Node* Float32LessThan(Node* a, Node* b) {
352 return NewNode(machine()->Float32LessThan(), a, b); 352 return NewNode(machine()->Float32LessThan(), a, b);
353 } 353 }
(...skipping 13 matching lines...) Expand all
367 } 367 }
368 Node* Float64Mul(Node* a, Node* b) { 368 Node* Float64Mul(Node* a, Node* b) {
369 return NewNode(machine()->Float64Mul(), a, b); 369 return NewNode(machine()->Float64Mul(), a, b);
370 } 370 }
371 Node* Float64Div(Node* a, Node* b) { 371 Node* Float64Div(Node* a, Node* b) {
372 return NewNode(machine()->Float64Div(), a, b); 372 return NewNode(machine()->Float64Div(), a, b);
373 } 373 }
374 Node* Float64Mod(Node* a, Node* b) { 374 Node* Float64Mod(Node* a, Node* b) {
375 return NewNode(machine()->Float64Mod(), a, b); 375 return NewNode(machine()->Float64Mod(), a, b);
376 } 376 }
377 Node* Float64Abs(Node* a) { return NewNode(machine()->Float64Abs(), a); } 377 Node* Float64Abs(Node* a) { return NewNode(machine()->Float64Abs().op(), a); }
378 Node* Float64Sqrt(Node* a) { return NewNode(machine()->Float64Sqrt(), a); } 378 Node* Float64Sqrt(Node* a) { return NewNode(machine()->Float64Sqrt(), a); }
379 Node* Float64Equal(Node* a, Node* b) { 379 Node* Float64Equal(Node* a, Node* b) {
380 return NewNode(machine()->Float64Equal(), a, b); 380 return NewNode(machine()->Float64Equal(), a, b);
381 } 381 }
382 Node* Float64NotEqual(Node* a, Node* b) { 382 Node* Float64NotEqual(Node* a, Node* b) {
383 return WordBinaryNot(Float64Equal(a, b)); 383 return WordBinaryNot(Float64Equal(a, b));
384 } 384 }
385 Node* Float64LessThan(Node* a, Node* b) { 385 Node* Float64LessThan(Node* a, Node* b) {
386 return NewNode(machine()->Float64LessThan(), a, b); 386 return NewNode(machine()->Float64LessThan(), a, b);
387 } 387 }
(...skipping 30 matching lines...) Expand all
418 Node* TruncateFloat64ToFloat32(Node* a) { 418 Node* TruncateFloat64ToFloat32(Node* a) {
419 return NewNode(machine()->TruncateFloat64ToFloat32(), a); 419 return NewNode(machine()->TruncateFloat64ToFloat32(), a);
420 } 420 }
421 Node* TruncateFloat64ToInt32(Node* a) { 421 Node* TruncateFloat64ToInt32(Node* a) {
422 return NewNode(machine()->TruncateFloat64ToInt32(), a); 422 return NewNode(machine()->TruncateFloat64ToInt32(), a);
423 } 423 }
424 Node* TruncateInt64ToInt32(Node* a) { 424 Node* TruncateInt64ToInt32(Node* a) {
425 return NewNode(machine()->TruncateInt64ToInt32(), a); 425 return NewNode(machine()->TruncateInt64ToInt32(), a);
426 } 426 }
427 Node* Float64RoundDown(Node* a) { 427 Node* Float64RoundDown(Node* a) {
428 return NewNode(machine()->Float64RoundDown(), a); 428 return NewNode(machine()->Float64RoundDown().op(), a);
429 } 429 }
430 Node* Float64RoundTruncate(Node* a) { 430 Node* Float64RoundTruncate(Node* a) {
431 return NewNode(machine()->Float64RoundTruncate(), a); 431 return NewNode(machine()->Float64RoundTruncate().op(), a);
432 } 432 }
433 Node* Float64RoundTiesAway(Node* a) { 433 Node* Float64RoundTiesAway(Node* a) {
434 return NewNode(machine()->Float64RoundTiesAway(), a); 434 return NewNode(machine()->Float64RoundTiesAway().op(), a);
435 } 435 }
436 436
437 // Float64 bit operations. 437 // Float64 bit operations.
438 Node* Float64ExtractLowWord32(Node* a) { 438 Node* Float64ExtractLowWord32(Node* a) {
439 return NewNode(machine()->Float64ExtractLowWord32(), a); 439 return NewNode(machine()->Float64ExtractLowWord32(), a);
440 } 440 }
441 Node* Float64ExtractHighWord32(Node* a) { 441 Node* Float64ExtractHighWord32(Node* a) {
442 return NewNode(machine()->Float64ExtractHighWord32(), a); 442 return NewNode(machine()->Float64ExtractHighWord32(), a);
443 } 443 }
444 Node* Float64InsertLowWord32(Node* a, Node* b) { 444 Node* Float64InsertLowWord32(Node* a, Node* b) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 BasicBlock* current_block_; 513 BasicBlock* current_block_;
514 514
515 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); 515 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler);
516 }; 516 };
517 517
518 } // namespace compiler 518 } // namespace compiler
519 } // namespace internal 519 } // namespace internal
520 } // namespace v8 520 } // namespace v8
521 521
522 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 522 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698