Index: src/v8utils.h |
diff --git a/src/v8utils.h b/src/v8utils.h |
index c73222a29b489cdce94285af574e1c6aa1acd76e..bb587e17332c4bbbe9248806097b36512009f2e0 100644 |
--- a/src/v8utils.h |
+++ b/src/v8utils.h |
@@ -1,4 +1,4 @@ |
-// Copyright 2011 the V8 project authors. All rights reserved. |
+// Copyright 2012 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -199,10 +199,13 @@ Vector<const char> ReadFile(FILE* file, |
bool verbose = true); |
- |
// Copy from ASCII/16bit chars to ASCII/16bit chars. |
template <typename sourcechar, typename sinkchar> |
-inline void CopyChars(sinkchar* dest, const sourcechar* src, int chars) { |
+INLINE(void CopyChars(sinkchar* dest, const sourcechar* src, int chars)); |
+ |
+ |
+template <typename sourcechar, typename sinkchar> |
+void CopyChars(sinkchar* dest, const sourcechar* src, int chars) { |
sinkchar* limit = dest + chars; |
#ifdef V8_HOST_CAN_READ_UNALIGNED |
if (sizeof(*dest) == sizeof(*src)) { |