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

Side by Side Diff: src/arm64/macro-assembler-arm64.cc

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm64/disasm-arm64.cc ('k') | src/arm64/simulator-arm64.cc » ('j') | src/base/cpu.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698