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 <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 CallRuntime(function_id, GetContext(), BytecodeArrayTaggedPointer(), | 524 CallRuntime(function_id, GetContext(), BytecodeArrayTaggedPointer(), |
525 SmiTag(BytecodeOffset()), GetAccumulator()); | 525 SmiTag(BytecodeOffset()), GetAccumulator()); |
526 } | 526 } |
527 | 527 |
528 // static | 528 // static |
529 bool InterpreterAssembler::TargetSupportsUnalignedAccess() { | 529 bool InterpreterAssembler::TargetSupportsUnalignedAccess() { |
530 #if V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 | 530 #if V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 |
531 return false; | 531 return false; |
532 #elif V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_PPC | 532 #elif V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_PPC |
533 return CpuFeatures::IsSupported(UNALIGNED_ACCESSES); | 533 return CpuFeatures::IsSupported(UNALIGNED_ACCESSES); |
534 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 | 534 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 || \ |
| 535 V8_TARGET_ARCH_S390 |
535 return true; | 536 return true; |
536 #else | 537 #else |
537 #error "Unknown Architecture" | 538 #error "Unknown Architecture" |
538 #endif | 539 #endif |
539 } | 540 } |
540 | 541 |
541 } // namespace interpreter | 542 } // namespace interpreter |
542 } // namespace internal | 543 } // namespace internal |
543 } // namespace v8 | 544 } // namespace v8 |
OLD | NEW |