Fix windows build after r19897.

TBR=dslomov@chromium.org

Review URL: https://codereview.chromium.org/199133002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19898 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ulan@chromium.org 2014-03-13 14:24:00 +00:00
parent 2f26700885
commit 645392891f

View File

@ -3700,13 +3700,13 @@ TEST(ObjectsInOptimizedCodeAreWeak) {
static Handle<JSFunction> OptimizeDummyFunction(const char* name) {
char source[256];
snprintf(source, sizeof(source),
"function %s() { return 0; }"
"%s(); %s();"
"%%OptimizeFunctionOnNextCall(%s);"
"%s();", name, name, name, name, name);
CompileRun(source);
EmbeddedVector<char, 256> source;
OS::SNPrintF(source,
"function %s() { return 0; }"
"%s(); %s();"
"%%OptimizeFunctionOnNextCall(%s);"
"%s();", name, name, name, name, name);
CompileRun(source.start());
Handle<JSFunction> fun =
v8::Utils::OpenHandle(
*v8::Handle<v8::Function>::Cast(