OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1891 Str(scratch2, FieldMemOperand(string, String::kHashFieldOffset)); | 1891 Str(scratch2, FieldMemOperand(string, String::kHashFieldOffset)); |
1892 } | 1892 } |
1893 | 1893 |
1894 | 1894 |
1895 int MacroAssembler::ActivationFrameAlignment() { | 1895 int MacroAssembler::ActivationFrameAlignment() { |
1896 #if V8_HOST_ARCH_ARM64 | 1896 #if V8_HOST_ARCH_ARM64 |
1897 // Running on the real platform. Use the alignment as mandated by the local | 1897 // Running on the real platform. Use the alignment as mandated by the local |
1898 // environment. | 1898 // environment. |
1899 // Note: This will break if we ever start generating snapshots on one ARM | 1899 // Note: This will break if we ever start generating snapshots on one ARM |
1900 // platform for another ARM platform with a different alignment. | 1900 // platform for another ARM platform with a different alignment. |
1901 return OS::ActivationFrameAlignment(); | 1901 return base::OS::ActivationFrameAlignment(); |
1902 #else // V8_HOST_ARCH_ARM64 | 1902 #else // V8_HOST_ARCH_ARM64 |
1903 // If we are using the simulator then we should always align to the expected | 1903 // If we are using the simulator then we should always align to the expected |
1904 // alignment. As the simulator is used to generate snapshots we do not know | 1904 // alignment. As the simulator is used to generate snapshots we do not know |
1905 // if the target platform will need alignment, so this is controlled from a | 1905 // if the target platform will need alignment, so this is controlled from a |
1906 // flag. | 1906 // flag. |
1907 return FLAG_sim_stack_alignment; | 1907 return FLAG_sim_stack_alignment; |
1908 #endif // V8_HOST_ARCH_ARM64 | 1908 #endif // V8_HOST_ARCH_ARM64 |
1909 } | 1909 } |
1910 | 1910 |
1911 | 1911 |
(...skipping 3382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5294 } | 5294 } |
5295 } | 5295 } |
5296 | 5296 |
5297 | 5297 |
5298 #undef __ | 5298 #undef __ |
5299 | 5299 |
5300 | 5300 |
5301 } } // namespace v8::internal | 5301 } } // namespace v8::internal |
5302 | 5302 |
5303 #endif // V8_TARGET_ARCH_ARM64 | 5303 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |