Revision: 19898
Author: [email protected]
Date: Thu Mar 13 14:24:00 2014 UTC
Log: Fix windows build after r19897.
[email protected]
Review URL: https://codereview.chromium.org/199133002
http://code.google.com/p/v8/source/detail?r=19898
Modified:
/branches/bleeding_edge/test/cctest/test-heap.cc
=======================================
--- /branches/bleeding_edge/test/cctest/test-heap.cc Thu Mar 13 14:09:18
2014 UTC
+++ /branches/bleeding_edge/test/cctest/test-heap.cc Thu Mar 13 14:24:00
2014 UTC
@@ -3700,13 +3700,13 @@
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(
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.