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:
parent
2f26700885
commit
645392891f
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user