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

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

Issue 2072863003: S390: Enable unaligned accesses and character preloading in regexp. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: S390: Fixes based on review feedback. - Guard the load character intruction with endian macro Created 4 years, 5 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 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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 Goto(&counter_saturated); 841 Goto(&counter_saturated);
842 } 842 }
843 843
844 Bind(&counter_saturated); 844 Bind(&counter_saturated);
845 } 845 }
846 846
847 // static 847 // static
848 bool InterpreterAssembler::TargetSupportsUnalignedAccess() { 848 bool InterpreterAssembler::TargetSupportsUnalignedAccess() {
849 #if V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 849 #if V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64
850 return false; 850 return false;
851 #elif V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_PPC 851 #elif V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_PPC || \
852 V8_TARGET_ARCH_S390
852 return CpuFeatures::IsSupported(UNALIGNED_ACCESSES); 853 return CpuFeatures::IsSupported(UNALIGNED_ACCESSES);
853 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 || \ 854 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87
854 V8_TARGET_ARCH_S390
855 return true; 855 return true;
856 #else 856 #else
857 #error "Unknown Architecture" 857 #error "Unknown Architecture"
858 #endif 858 #endif
859 } 859 }
860 860
861 Node* InterpreterAssembler::RegisterCount() { 861 Node* InterpreterAssembler::RegisterCount() {
862 Node* bytecode_array = LoadRegister(Register::bytecode_array()); 862 Node* bytecode_array = LoadRegister(Register::bytecode_array());
863 Node* frame_size = LoadObjectField( 863 Node* frame_size = LoadObjectField(
864 bytecode_array, BytecodeArray::kFrameSizeOffset, MachineType::Int32()); 864 bytecode_array, BytecodeArray::kFrameSizeOffset, MachineType::Int32());
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 Goto(&loop); 932 Goto(&loop);
933 } 933 }
934 Bind(&done_loop); 934 Bind(&done_loop);
935 935
936 return array; 936 return array;
937 } 937 }
938 938
939 } // namespace interpreter 939 } // namespace interpreter
940 } // namespace internal 940 } // namespace internal
941 } // namespace v8 941 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/regexp/s390/regexp-macro-assembler-s390.cc » ('j') | src/regexp/s390/regexp-macro-assembler-s390.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698