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

Unified Diff: runtime/vm/os_android.cc

Issue 415513002: - Fix a lot of warnings generated by -Wshorten-64-to-32 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/os.h ('k') | runtime/vm/os_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_android.cc
===================================================================
--- runtime/vm/os_android.cc (revision 38492)
+++ runtime/vm/os_android.cc (working copy)
@@ -204,7 +204,7 @@
// TODO(5411554): May need to hoist these architecture dependent code
// into a architecture specific file e.g: os_ia32_linux.cc
-word OS::ActivationFrameAlignment() {
+intptr_t OS::ActivationFrameAlignment() {
#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
const int kMinimumAlignment = 16;
#elif defined(TARGET_ARCH_ARM)
@@ -212,7 +212,7 @@
#else
#error Unsupported architecture.
#endif
- word alignment = kMinimumAlignment;
+ intptr_t alignment = kMinimumAlignment;
// TODO(5411554): Allow overriding default stack alignment for
// testing purposes.
// Flags::DebugIsInt("stackalign", &alignment);
@@ -222,7 +222,7 @@
}
-word OS::PreferredCodeAlignment() {
+intptr_t OS::PreferredCodeAlignment() {
#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
const int kMinimumAlignment = 16;
#elif defined(TARGET_ARCH_ARM)
@@ -230,7 +230,7 @@
#else
#error Unsupported architecture.
#endif
- word alignment = kMinimumAlignment;
+ intptr_t alignment = kMinimumAlignment;
// TODO(5411554): Allow overriding default code alignment for
// testing purposes.
// Flags::DebugIsInt("codealign", &alignment);
@@ -241,19 +241,6 @@
}
-uword OS::GetStackSizeLimit() {
- struct rlimit stack_limit;
- int retval = getrlimit(RLIMIT_STACK, &stack_limit);
- ASSERT(retval == 0);
- if (stack_limit.rlim_cur > INT_MAX) {
- retval = INT_MAX;
- } else {
- retval = stack_limit.rlim_cur;
- }
- return retval;
-}
-
-
bool OS::AllowStackFrameIteratorFromAnotherThread() {
return false;
}
« no previous file with comments | « runtime/vm/os.h ('k') | runtime/vm/os_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698