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

Unified Diff: runtime/vm/native_symbol.h

Issue 25909002: Sampling profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/isolate.cc ('k') | runtime/vm/native_symbol_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/native_symbol.h
diff --git a/runtime/vm/random.h b/runtime/vm/native_symbol.h
similarity index 52%
copy from runtime/vm/random.h
copy to runtime/vm/native_symbol.h
index c1c69d63efed579195a8314f3126327415c2526f..52151b26a241bf9357ce86d6251edb8577cb5b84 100644
--- a/runtime/vm/random.h
+++ b/runtime/vm/native_symbol.h
@@ -2,30 +2,25 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#ifndef VM_RANDOM_H_
-#define VM_RANDOM_H_
+#ifndef VM_NATIVE_SYMBOL_H_
+#define VM_NATIVE_SYMBOL_H_
-#include "vm/globals.h"
#include "vm/allocation.h"
+#include "vm/globals.h"
namespace dart {
-class Random : public ValueObject {
- public:
- Random();
- ~Random();
-
- uint32_t NextUInt32();
+class Mutex;
- private:
- void NextState();
-
- uint64_t _state;
-
- DISALLOW_ALLOCATION();
- DISALLOW_COPY_AND_ASSIGN(Random);
+class NativeSymbolResolver : public AllStatic {
+ public:
+ static void InitOnce();
+ static void ShutdownOnce();
+ static char* LookupSymbolName(uintptr_t pc);
+ static void FreeSymbolName(char* name);
};
+
} // namespace dart
-#endif // VM_RANDOM_H_
+#endif // VM_NATIVE_SYMBOL_H_
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/native_symbol_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698