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

Side by Side Diff: src/compiler/code-generator-impl.h

Issue 1404093003: [turbofan] Negate with shifted input for ARM64 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_CODE_GENERATOR_IMPL_H_ 5 #ifndef V8_COMPILER_CODE_GENERATOR_IMPL_H_
6 #define V8_COMPILER_CODE_GENERATOR_IMPL_H_ 6 #define V8_COMPILER_CODE_GENERATOR_IMPL_H_
7 7
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compiler/code-generator.h" 9 #include "src/compiler/code-generator.h"
10 #include "src/compiler/instruction.h" 10 #include "src/compiler/instruction.h"
(...skipping 25 matching lines...) Expand all
36 } 36 }
37 37
38 double InputDouble(size_t index) { return ToDouble(instr_->InputAt(index)); } 38 double InputDouble(size_t index) { return ToDouble(instr_->InputAt(index)); }
39 39
40 float InputFloat32(size_t index) { return ToFloat32(instr_->InputAt(index)); } 40 float InputFloat32(size_t index) { return ToFloat32(instr_->InputAt(index)); }
41 41
42 int32_t InputInt32(size_t index) { 42 int32_t InputInt32(size_t index) {
43 return ToConstant(instr_->InputAt(index)).ToInt32(); 43 return ToConstant(instr_->InputAt(index)).ToInt32();
44 } 44 }
45 45
46 int64_t InputInt64(size_t index) {
47 return ToConstant(instr_->InputAt(index)).ToInt64();
48 }
49
46 int8_t InputInt8(size_t index) { 50 int8_t InputInt8(size_t index) {
47 return static_cast<int8_t>(InputInt32(index)); 51 return static_cast<int8_t>(InputInt32(index));
48 } 52 }
49 53
50 int16_t InputInt16(size_t index) { 54 int16_t InputInt16(size_t index) {
51 return static_cast<int16_t>(InputInt32(index)); 55 return static_cast<int16_t>(InputInt32(index));
52 } 56 }
53 57
54 uint8_t InputInt5(size_t index) { 58 uint8_t InputInt5(size_t index) {
55 return static_cast<uint8_t>(InputInt32(index) & 0x1F); 59 return static_cast<uint8_t>(InputInt32(index) & 0x1F);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 166 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64
163 masm->ud2(); 167 masm->ud2();
164 #endif 168 #endif
165 } 169 }
166 170
167 } // namespace compiler 171 } // namespace compiler
168 } // namespace internal 172 } // namespace internal
169 } // namespace v8 173 } // namespace v8
170 174
171 #endif // V8_COMPILER_CODE_GENERATOR_IMPL_H 175 #endif // V8_COMPILER_CODE_GENERATOR_IMPL_H
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698