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

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

Issue 11660011: Clean up CodeObservers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add a period to a comment. Created 7 years, 12 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
« no previous file with comments | « runtime/vm/isolate.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 VM_OS_H_ 5 #ifndef VM_OS_H_
6 #define VM_OS_H_ 6 #define VM_OS_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 9
10 // Forward declarations. 10 // Forward declarations.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 va_list args); 104 va_list args);
105 105
106 // Converts a C string which represents a valid dart integer into a 64 bit 106 // Converts a C string which represents a valid dart integer into a 64 bit
107 // value. 107 // value.
108 // Returns false if it is unable to convert the string to a 64 bit value, 108 // Returns false if it is unable to convert the string to a 64 bit value,
109 // the failure could be because of underflow/overflow or invalid characters. 109 // the failure could be because of underflow/overflow or invalid characters.
110 // On success the function returns true and 'value' contains the converted 110 // On success the function returns true and 'value' contains the converted
111 // value. 111 // value.
112 static bool StringToInt64(const char* str, int64_t* value); 112 static bool StringToInt64(const char* str, int64_t* value);
113 113
114 // Register code observers relevant to this OS.
115 static void RegisterCodeObservers();
116
114 // Initialize the OS class. 117 // Initialize the OS class.
115 static void InitOnce(); 118 static void InitOnce();
116 119
117 // Shut down the OS class. 120 // Shut down the OS class.
118 static void Shutdown(); 121 static void Shutdown();
119 122
120 static void Abort(); 123 static void Abort();
121 124
122 static void Exit(int code); 125 static void Exit(int code);
123 }; 126 };
124 127
125 } // namespace dart 128 } // namespace dart
126 129
127 #endif // VM_OS_H_ 130 #endif // VM_OS_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/os_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698