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

Side by Side Diff: src/interpreter/interpreter-assembler.cc

Issue 2184823002: [arm] Clean up the use of UNALIGNED_ACCESSES. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/globals.h ('k') | src/regexp/arm/regexp-macro-assembler-arm.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/interpreter/interpreter-assembler.h" 5 #include "src/interpreter/interpreter-assembler.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <ostream> 8 #include <ostream>
9 9
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 Goto(&counter_saturated); 898 Goto(&counter_saturated);
899 } 899 }
900 900
901 Bind(&counter_saturated); 901 Bind(&counter_saturated);
902 } 902 }
903 903
904 // static 904 // static
905 bool InterpreterAssembler::TargetSupportsUnalignedAccess() { 905 bool InterpreterAssembler::TargetSupportsUnalignedAccess() {
906 #if V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 906 #if V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64
907 return false; 907 return false;
908 #elif V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_PPC 908 #elif V8_TARGET_ARCH_PPC
909 return CpuFeatures::IsSupported(UNALIGNED_ACCESSES); 909 return CpuFeatures::IsSupported(UNALIGNED_ACCESSES);
910 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 || \ 910 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 || \
911 V8_TARGET_ARCH_S390 911 V8_TARGET_ARCH_S390 || V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64
912 return true; 912 return true;
913 #else 913 #else
914 #error "Unknown Architecture" 914 #error "Unknown Architecture"
915 #endif 915 #endif
916 } 916 }
917 917
918 Node* InterpreterAssembler::RegisterCount() { 918 Node* InterpreterAssembler::RegisterCount() {
919 Node* bytecode_array = LoadRegister(Register::bytecode_array()); 919 Node* bytecode_array = LoadRegister(Register::bytecode_array());
920 Node* frame_size = LoadObjectField( 920 Node* frame_size = LoadObjectField(
921 bytecode_array, BytecodeArray::kFrameSizeOffset, MachineType::Int32()); 921 bytecode_array, BytecodeArray::kFrameSizeOffset, MachineType::Int32());
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 Goto(&loop); 989 Goto(&loop);
990 } 990 }
991 Bind(&done_loop); 991 Bind(&done_loop);
992 992
993 return array; 993 return array;
994 } 994 }
995 995
996 } // namespace interpreter 996 } // namespace interpreter
997 } // namespace internal 997 } // namespace internal
998 } // namespace v8 998 } // namespace v8
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/regexp/arm/regexp-macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698