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

Side by Side Diff: src/compiler/wasm-compiler.cc

Issue 1973493003: [turbofan] Introduce new operators Float32SubPreserveNan and Float64SubPreserveNan for wasm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/compiler/x64/instruction-selector-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include "src/compiler/wasm-compiler.h" 5 #include "src/compiler/wasm-compiler.h"
6 6
7 #include "src/isolate-inl.h" 7 #include "src/isolate-inl.h"
8 8
9 #include "src/base/platform/elapsed-timer.h" 9 #include "src/base/platform/elapsed-timer.h"
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 case wasm::kExprI64Rol: 531 case wasm::kExprI64Rol:
532 return BuildI64Rol(left, right); 532 return BuildI64Rol(left, right);
533 case wasm::kExprF32CopySign: 533 case wasm::kExprF32CopySign:
534 return BuildF32CopySign(left, right); 534 return BuildF32CopySign(left, right);
535 case wasm::kExprF64CopySign: 535 case wasm::kExprF64CopySign:
536 return BuildF64CopySign(left, right); 536 return BuildF64CopySign(left, right);
537 case wasm::kExprF32Add: 537 case wasm::kExprF32Add:
538 op = m->Float32Add(); 538 op = m->Float32Add();
539 break; 539 break;
540 case wasm::kExprF32Sub: 540 case wasm::kExprF32Sub:
541 op = m->Float32Sub(); 541 op = m->Float32SubPreserveNan();
542 break; 542 break;
543 case wasm::kExprF32Mul: 543 case wasm::kExprF32Mul:
544 op = m->Float32Mul(); 544 op = m->Float32Mul();
545 break; 545 break;
546 case wasm::kExprF32Div: 546 case wasm::kExprF32Div:
547 op = m->Float32Div(); 547 op = m->Float32Div();
548 break; 548 break;
549 case wasm::kExprF32Eq: 549 case wasm::kExprF32Eq:
550 op = m->Float32Equal(); 550 op = m->Float32Equal();
551 break; 551 break;
(...skipping 10 matching lines...) Expand all
562 op = m->Float32LessThan(); 562 op = m->Float32LessThan();
563 std::swap(left, right); 563 std::swap(left, right);
564 break; 564 break;
565 case wasm::kExprF32Le: 565 case wasm::kExprF32Le:
566 op = m->Float32LessThanOrEqual(); 566 op = m->Float32LessThanOrEqual();
567 break; 567 break;
568 case wasm::kExprF64Add: 568 case wasm::kExprF64Add:
569 op = m->Float64Add(); 569 op = m->Float64Add();
570 break; 570 break;
571 case wasm::kExprF64Sub: 571 case wasm::kExprF64Sub:
572 op = m->Float64Sub(); 572 op = m->Float64SubPreserveNan();
573 break; 573 break;
574 case wasm::kExprF64Mul: 574 case wasm::kExprF64Mul:
575 op = m->Float64Mul(); 575 op = m->Float64Mul();
576 break; 576 break;
577 case wasm::kExprF64Div: 577 case wasm::kExprF64Div:
578 op = m->Float64Div(); 578 op = m->Float64Div();
579 break; 579 break;
580 case wasm::kExprF64Eq: 580 case wasm::kExprF64Eq:
581 op = m->Float64Equal(); 581 op = m->Float64Equal();
582 break; 582 break;
(...skipping 2527 matching lines...) Expand 10 before | Expand all | Expand 10 after
3110 const wasm::WasmFunction* function) { 3110 const wasm::WasmFunction* function) {
3111 WasmCompilationUnit* unit = 3111 WasmCompilationUnit* unit =
3112 CreateWasmCompilationUnit(thrower, isolate, module_env, function, 0); 3112 CreateWasmCompilationUnit(thrower, isolate, module_env, function, 0);
3113 ExecuteCompilation(unit); 3113 ExecuteCompilation(unit);
3114 return FinishCompilation(unit); 3114 return FinishCompilation(unit);
3115 } 3115 }
3116 3116
3117 } // namespace compiler 3117 } // namespace compiler
3118 } // namespace internal 3118 } // namespace internal
3119 } // namespace v8 3119 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698