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

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

Issue 1798863004: [wasm] Add I64Eqz operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | src/wasm/wasm-macro-gen.h » ('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 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 // kExprI64UConvertI32: 858 // kExprI64UConvertI32:
859 case wasm::kExprI64UConvertI32: 859 case wasm::kExprI64UConvertI32:
860 op = m->ChangeUint32ToUint64(); 860 op = m->ChangeUint32ToUint64();
861 break; 861 break;
862 // kExprF64ReinterpretI64: 862 // kExprF64ReinterpretI64:
863 // kExprI64ReinterpretF64: 863 // kExprI64ReinterpretF64:
864 // kExprI64Clz: 864 // kExprI64Clz:
865 // kExprI64Ctz: 865 // kExprI64Ctz:
866 // kExprI64Popcnt: 866 // kExprI64Popcnt:
867 // kExprF32SConvertI64: 867 // kExprF32SConvertI64:
868 case wasm::kExprI64Eqz:
869 op = m->Word64Equal();
870 return graph()->NewNode(op, input, jsgraph()->Int64Constant(0));
868 case wasm::kExprF32SConvertI64: 871 case wasm::kExprF32SConvertI64:
869 if (m->Is32()) { 872 if (m->Is32()) {
870 return BuildF32SConvertI64(input); 873 return BuildF32SConvertI64(input);
871 } 874 }
872 op = m->RoundInt64ToFloat32(); 875 op = m->RoundInt64ToFloat32();
873 break; 876 break;
874 // kExprF32UConvertI64: 877 // kExprF32UConvertI64:
875 case wasm::kExprF32UConvertI64: 878 case wasm::kExprF32UConvertI64:
876 if (m->Is32()) { 879 if (m->Is32()) {
877 return BuildF32UConvertI64(input); 880 return BuildF32UConvertI64(input);
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
2572 static_cast<int>(function.code_end_offset - function.code_start_offset), 2575 static_cast<int>(function.code_end_offset - function.code_start_offset),
2573 decode_ms, static_cast<int>(graph.NodeCount()), compile_ms); 2576 decode_ms, static_cast<int>(graph.NodeCount()), compile_ms);
2574 } 2577 }
2575 return code; 2578 return code;
2576 } 2579 }
2577 2580
2578 2581
2579 } // namespace compiler 2582 } // namespace compiler
2580 } // namespace internal 2583 } // namespace internal
2581 } // namespace v8 2584 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/wasm/wasm-macro-gen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698