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