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

Side by Side Diff: src/x64/assembler-x64-inl.h

Issue 2719953002: Add Int32x4 Wasm Simd Binops, compare ops, select (Closed)
Patch Set: Rebase Created 3 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X64_ASSEMBLER_X64_INL_H_ 5 #ifndef V8_X64_ASSEMBLER_X64_INL_H_
6 #define V8_X64_ASSEMBLER_X64_INL_H_ 6 #define V8_X64_ASSEMBLER_X64_INL_H_
7 7
8 #include "src/x64/assembler-x64.h" 8 #include "src/x64/assembler-x64.h"
9 9
10 #include "src/base/cpu.h" 10 #include "src/base/cpu.h"
11 #include "src/debug/debug.h" 11 #include "src/debug/debug.h"
12 #include "src/objects-inl.h" 12 #include "src/objects-inl.h"
13 #include "src/v8memory.h" 13 #include "src/v8memory.h"
14 14
15 namespace v8 { 15 namespace v8 {
16 namespace internal { 16 namespace internal {
17 17
18 bool CpuFeatures::SupportsCrankshaft() { return true; } 18 bool CpuFeatures::SupportsCrankshaft() { return true; }
19 19
20 bool CpuFeatures::SupportsSimd128() { return true; } 20 bool CpuFeatures::SupportsWasmSimd128() { return IsSupported(SSE4_1); }
21 21
22 // ----------------------------------------------------------------------------- 22 // -----------------------------------------------------------------------------
23 // Implementation of Assembler 23 // Implementation of Assembler
24 24
25 25
26 static const byte kCallOpcode = 0xE8; 26 static const byte kCallOpcode = 0xE8;
27 27
28 28
29 void Assembler::emitl(uint32_t x) { 29 void Assembler::emitl(uint32_t x) {
30 Memory::uint32_at(pc_) = x; 30 Memory::uint32_at(pc_) = x;
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 void Operand::set_disp64(int64_t disp) { 610 void Operand::set_disp64(int64_t disp) {
611 DCHECK_EQ(1, len_); 611 DCHECK_EQ(1, len_);
612 int64_t* p = reinterpret_cast<int64_t*>(&buf_[len_]); 612 int64_t* p = reinterpret_cast<int64_t*>(&buf_[len_]);
613 *p = disp; 613 *p = disp;
614 len_ += sizeof(disp); 614 len_ += sizeof(disp);
615 } 615 }
616 } // namespace internal 616 } // namespace internal
617 } // namespace v8 617 } // namespace v8
618 618
619 #endif // V8_X64_ASSEMBLER_X64_INL_H_ 619 #endif // V8_X64_ASSEMBLER_X64_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698