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

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

Issue 1162033005: Fix http://dartbug.com/23578: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update to ToT. Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_BENCHMARK_TEST_H_ 5 #ifndef VM_BENCHMARK_TEST_H_
6 #define VM_BENCHMARK_TEST_H_ 6 #define VM_BENCHMARK_TEST_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // Accessors. 75 // Accessors.
76 const char* name() const { return name_; } 76 const char* name() const { return name_; }
77 const char* score_kind() const { return score_kind_; } 77 const char* score_kind() const { return score_kind_; }
78 void set_score(int64_t value) { score_ = value; } 78 void set_score(int64_t value) { score_ = value; }
79 int64_t score() const { return score_; } 79 int64_t score() const { return score_; }
80 Isolate* isolate() const { return reinterpret_cast<Isolate*>(isolate_); } 80 Isolate* isolate() const { return reinterpret_cast<Isolate*>(isolate_); }
81 81
82 Dart_Isolate CreateIsolate(const uint8_t* buffer) { 82 Dart_Isolate CreateIsolate(const uint8_t* buffer) {
83 char* err = NULL; 83 char* err = NULL;
84 isolate_ = Dart_CreateIsolate(NULL, NULL, buffer, NULL, &err); 84 isolate_ = Dart_CreateIsolate(NULL, NULL, buffer, NULL, NULL, &err);
85 EXPECT(isolate_ != NULL); 85 EXPECT(isolate_ != NULL);
86 free(err); 86 free(err);
87 return isolate_; 87 return isolate_;
88 } 88 }
89 89
90 void Run() { (*run_)(this); } 90 void Run() { (*run_)(this); }
91 void RunBenchmark(); 91 void RunBenchmark();
92 92
93 static void RunAll(const char* executable); 93 static void RunAll(const char* executable);
94 static void SetExecutable(const char* arg) { executable_ = arg; } 94 static void SetExecutable(const char* arg) { executable_ = arg; }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 private: 127 private:
128 Benchmark* benchmark_; 128 Benchmark* benchmark_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(BenchmarkIsolateScope); 130 DISALLOW_COPY_AND_ASSIGN(BenchmarkIsolateScope);
131 }; 131 };
132 132
133 } // namespace dart 133 } // namespace dart
134 134
135 #endif // VM_BENCHMARK_TEST_H_ 135 #endif // VM_BENCHMARK_TEST_H_
OLDNEW
« no previous file with comments | « runtime/vm/ast.cc ('k') | runtime/vm/class_finalizer.cc » ('j') | runtime/vm/compiler_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698