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

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

Issue 1729493002: [wasm] I added I64Eq to the Int64Lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int64-lowering-xor
Patch Set: rebase Created 4 years, 10 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/int64-lowering.cc ('k') | test/cctest/wasm/test-run-wasm-64.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/platform.h" 9 #include "src/base/platform/platform.h"
10 10
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 op = m->Word64Or(); 500 op = m->Word64Or();
501 break; 501 break;
502 // kExprI64Xor: 502 // kExprI64Xor:
503 case wasm::kExprI64Xor: 503 case wasm::kExprI64Xor:
504 op = m->Word64Xor(); 504 op = m->Word64Xor();
505 break; 505 break;
506 // kExprI64Shl: 506 // kExprI64Shl:
507 // kExprI64ShrU: 507 // kExprI64ShrU:
508 // kExprI64ShrS: 508 // kExprI64ShrS:
509 // kExprI64Eq: 509 // kExprI64Eq:
510 case wasm::kExprI64Eq:
511 op = m->Word64Equal();
512 break;
510 // kExprI64Ne: 513 // kExprI64Ne:
511 // kExprI64LtS: 514 // kExprI64LtS:
512 // kExprI64LeS: 515 // kExprI64LeS:
513 // kExprI64LtU: 516 // kExprI64LtU:
514 // kExprI64LeU: 517 // kExprI64LeU:
515 // kExprI64GtS: 518 // kExprI64GtS:
516 // kExprI64GeS: 519 // kExprI64GeS:
517 // kExprI64GtU: 520 // kExprI64GtU:
518 // kExprI64GeU: 521 // kExprI64GeU:
519 522
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 trap_->ZeroCheck64(kTrapRemByZero, right)); 591 trap_->ZeroCheck64(kTrapRemByZero, right));
589 case wasm::kExprI64Shl: 592 case wasm::kExprI64Shl:
590 op = m->Word64Shl(); 593 op = m->Word64Shl();
591 break; 594 break;
592 case wasm::kExprI64ShrU: 595 case wasm::kExprI64ShrU:
593 op = m->Word64Shr(); 596 op = m->Word64Shr();
594 break; 597 break;
595 case wasm::kExprI64ShrS: 598 case wasm::kExprI64ShrS:
596 op = m->Word64Sar(); 599 op = m->Word64Sar();
597 break; 600 break;
598 case wasm::kExprI64Eq:
599 op = m->Word64Equal();
600 break;
601 case wasm::kExprI64Ne: 601 case wasm::kExprI64Ne:
602 return Invert(Binop(wasm::kExprI64Eq, left, right)); 602 return Invert(Binop(wasm::kExprI64Eq, left, right));
603 case wasm::kExprI64LtS: 603 case wasm::kExprI64LtS:
604 op = m->Int64LessThan(); 604 op = m->Int64LessThan();
605 break; 605 break;
606 case wasm::kExprI64LeS: 606 case wasm::kExprI64LeS:
607 op = m->Int64LessThanOrEqual(); 607 op = m->Int64LessThanOrEqual();
608 break; 608 break;
609 case wasm::kExprI64LtU: 609 case wasm::kExprI64LtU:
610 op = m->Uint64LessThan(); 610 op = m->Uint64LessThan();
(...skipping 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after
2254 module_env->module->GetName(function.name_offset)); 2254 module_env->module->GetName(function.name_offset));
2255 } 2255 }
2256 2256
2257 return code; 2257 return code;
2258 } 2258 }
2259 2259
2260 2260
2261 } // namespace compiler 2261 } // namespace compiler
2262 } // namespace internal 2262 } // namespace internal
2263 } // namespace v8 2263 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/int64-lowering.cc ('k') | test/cctest/wasm/test-run-wasm-64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698