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

Side by Side Diff: runtime/vm/os.h

Issue 2714083002: Revert "Fixed issue in MallocHooks where a MallocHookScope was accidentally removed during a merge,… (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/os_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_VM_OS_H_ 5 #ifndef RUNTIME_VM_OS_H_
6 #define RUNTIME_VM_OS_H_ 6 #define RUNTIME_VM_OS_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 9
10 // Forward declarations. 10 // Forward declarations.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Sleep the currently executing thread for millis ms. 89 // Sleep the currently executing thread for millis ms.
90 static void Sleep(int64_t millis); 90 static void Sleep(int64_t millis);
91 91
92 // Sleep the currently executing thread for micros microseconds. 92 // Sleep the currently executing thread for micros microseconds.
93 static void SleepMicros(int64_t micros); 93 static void SleepMicros(int64_t micros);
94 94
95 // Debug break. 95 // Debug break.
96 static void DebugBreak(); 96 static void DebugBreak();
97 97
98 // Returns the current program counter.
99 static uintptr_t GetProgramCounter();
100
101 // Not all platform support strndup. 98 // Not all platform support strndup.
102 static char* StrNDup(const char* s, intptr_t n); 99 static char* StrNDup(const char* s, intptr_t n);
103 static intptr_t StrNLen(const char* s, intptr_t n); 100 static intptr_t StrNLen(const char* s, intptr_t n);
104 101
105 // Print formatted output to stdout/stderr for debugging. 102 // Print formatted output to stdout/stderr for debugging.
106 static void Print(const char* format, ...) PRINTF_ATTRIBUTE(1, 2); 103 static void Print(const char* format, ...) PRINTF_ATTRIBUTE(1, 2);
107 static void PrintErr(const char* format, ...) PRINTF_ATTRIBUTE(1, 2); 104 static void PrintErr(const char* format, ...) PRINTF_ATTRIBUTE(1, 2);
108 static void VFPrint(FILE* stream, const char* format, va_list args); 105 static void VFPrint(FILE* stream, const char* format, va_list args);
109 // Print formatted output info a buffer. 106 // Print formatted output info a buffer.
110 // 107 //
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 static void Shutdown(); 148 static void Shutdown();
152 149
153 static void Abort(); 150 static void Abort();
154 151
155 static void Exit(int code); 152 static void Exit(int code);
156 }; 153 };
157 154
158 } // namespace dart 155 } // namespace dart
159 156
160 #endif // RUNTIME_VM_OS_H_ 157 #endif // RUNTIME_VM_OS_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/os_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698