Commit 64539289 authored by ulan@chromium.org's avatar ulan@chromium.org

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
parent 2f267008
...@@ -3700,13 +3700,13 @@ TEST(ObjectsInOptimizedCodeAreWeak) { ...@@ -3700,13 +3700,13 @@ TEST(ObjectsInOptimizedCodeAreWeak) {
static Handle<JSFunction> OptimizeDummyFunction(const char* name) { static Handle<JSFunction> OptimizeDummyFunction(const char* name) {
char source[256]; EmbeddedVector<char, 256> source;
snprintf(source, sizeof(source), OS::SNPrintF(source,
"function %s() { return 0; }" "function %s() { return 0; }"
"%s(); %s();" "%s(); %s();"
"%%OptimizeFunctionOnNextCall(%s);" "%%OptimizeFunctionOnNextCall(%s);"
"%s();", name, name, name, name, name); "%s();", name, name, name, name, name);
CompileRun(source); CompileRun(source.start());
Handle<JSFunction> fun = Handle<JSFunction> fun =
v8::Utils::OpenHandle( v8::Utils::OpenHandle(
*v8::Handle<v8::Function>::Cast( *v8::Handle<v8::Function>::Cast(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment