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

Unified Diff: test/cctest/test-compiler.cc

Issue 110203002: Refactor the compiling pipeline. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: move some code Created 7 years 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: test/cctest/test-compiler.cc
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc
index a0836c342641370306dd0acce543ca4f23687b6d..fab009962b07f585e132eacd6ad31896060d5f7e 100644
--- a/test/cctest/test-compiler.cc
+++ b/test/cctest/test-compiler.cc
@@ -104,16 +104,13 @@ static Handle<JSFunction> Compile(const char* source) {
Handle<String> source_code(
isolate->factory()->NewStringFromUtf8(CStrVector(source)));
Handle<SharedFunctionInfo> shared_function =
- Compiler::Compile(source_code,
- Handle<String>(),
- 0,
- 0,
- false,
- Handle<Context>(isolate->native_context()),
- NULL,
- NULL,
- Handle<String>::null(),
- NOT_NATIVES_CODE);
+ Compiler::CompileScript(source_code,
+ Handle<String>(), 0, 0,
titzer 2013/12/09 14:49:28 formatting changes
Yang 2013/12/10 11:22:04 Done.
+ false,
+ Handle<Context>(isolate->native_context()),
+ NULL, NULL,
+ Handle<String>::null(),
+ NOT_NATIVES_CODE);
return isolate->factory()->NewFunctionFromSharedFunctionInfo(
shared_function, isolate->native_context());
}

Powered by Google App Engine
This is Rietveld 408576698