OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |