Reviewers: Dmitry Lomov (chromium),
Message:
Committed patchset #1 manually as r19898 (tree was closed).
Description:
Fix windows build after r19897.
[email protected]
Committed: https://code.google.com/p/v8/source/detail?r=19898
Please review this at https://codereview.chromium.org/199133002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+7, -7 lines):
M test/cctest/test-heap.cc
Index: test/cctest/test-heap.cc
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
index
60e70fc0f617b5fa1c7b5843d1de2e90345c7300..2ea380e1c94c40f4ad64eff9ce3dc6bcc9c936e2
100644
--- a/test/cctest/test-heap.cc
+++ b/test/cctest/test-heap.cc
@@ -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(
--
--
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.