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

Unified Diff: runtime/vm/benchmark_test.cc

Issue 11358024: Changes outside pkg/ and lib/ for directory refactoring (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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/benchmark_test.cc
===================================================================
--- runtime/vm/benchmark_test.cc (revision 14364)
+++ runtime/vm/benchmark_test.cc (working copy)
@@ -233,7 +233,8 @@
static char* ComputeDart2JSPath(const char* arg) {
char buffer[2048];
char* dart2js_path = strdup(File::GetCanonicalPath(arg));
- const char* compiler_path = "%s%slib%scompiler%scompiler.dart";
+ const char* compiler_path =
+ "%s%ssdk%slib%siinternal%scompiler%scompiler.dart";
const char* path_separator = File::PathSeparator();
ASSERT(path_separator != NULL && strlen(path_separator) == 1);
char* ptr = strrchr(dart2js_path, *path_separator);
@@ -271,7 +272,8 @@
char* dart_root = ComputeDart2JSPath(Benchmark::Executable());
char* script = NULL;
if (dart_root != NULL) {
- const char* kFormatStr ="#import('%s/lib/compiler/compiler.dart');";
+ const char* kFormatStr =
+ "#import('%s/sdk/lib/_internal/compiler/compiler.dart');";
intptr_t len = OS::SNPrint(NULL, 0, kFormatStr, dart_root) + 1;
script = reinterpret_cast<char*>(malloc(len));
EXPECT(script != NULL);
@@ -282,7 +284,7 @@
EXPECT_VALID(lib);
} else {
Dart_Handle lib = TestCase::LoadTestScript(
- "#import('lib/compiler/compiler.dart');",
+ "#import('sdk/lib/_internal/compiler/compiler.dart');",
reinterpret_cast<Dart_NativeEntryResolver>(NativeResolver));
EXPECT_VALID(lib);
}

Powered by Google App Engine
This is Rietveld 408576698