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

Unified Diff: runtime/vm/profiler_test.cc

Issue 1965823002: Initial isolate reload support (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
Index: runtime/vm/profiler_test.cc
diff --git a/runtime/vm/profiler_test.cc b/runtime/vm/profiler_test.cc
index 1ecac9f80aa198055a45aa1191a2cfae17c21fbb..cd1d456037cbf3aac78dbc9fe78d5602d234438c 100644
--- a/runtime/vm/profiler_test.cc
+++ b/runtime/vm/profiler_test.cc
@@ -21,24 +21,6 @@ DECLARE_FLAG(int, max_profile_depth);
DECLARE_FLAG(bool, enable_inlining_annotations);
DECLARE_FLAG(int, optimization_counter_threshold);
-template<typename T>
-class SetFlagScope : public ValueObject {
- public:
- SetFlagScope(T* flag, T value)
- : flag_(flag),
- original_value_(*flag) {
- *flag_ = value;
- }
-
- ~SetFlagScope() {
- *flag_ = original_value_;
- }
-
- private:
- T* flag_;
- T original_value_;
-};
-
// Some tests are written assuming native stack trace profiling is disabled.
class DisableNativeProfileScope : public ValueObject {
public:

Powered by Google App Engine
This is Rietveld 408576698