Index: test/cctest/test-compiler.cc |
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
index b81c1695de34a64926cac5605b233bf5c1c3538c..f200435489c48b97686e3daf53e3a6becbf534a1 100644 |
--- a/test/cctest/test-compiler.cc |
+++ b/test/cctest/test-compiler.cc |
@@ -330,7 +330,7 @@ TEST(GetScriptLineNumber) { |
for (int i = 0; i < max_rows; ++i) { |
if (i > 0) |
buffer[i - 1] = '\n'; |
- memcpy(&buffer[i], function_f, sizeof(function_f) - 1); |
+ OS::MemCopy(&buffer[i], function_f, sizeof(function_f) - 1); |
v8::Handle<v8::String> script_body = v8::String::New(buffer.start()); |
v8::Script::Compile(script_body, &origin)->Run(); |
v8::Local<v8::Function> f = v8::Local<v8::Function>::Cast( |