Commit 9367637d authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Old gcc on ARM can't cope with template stuff we weren't using anyway.

Review URL: http://codereview.chromium.org/12429

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@835 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 4eb1913c
......@@ -71,7 +71,7 @@ ArraySlice ByteArrayProvider::GetBuffer(unsigned int size,
template <typename T>
ArraySlice ByteArrayProvider::GetBuffer(Vector<T> values) {
ArraySlice slice = GetBuffer(values.length(), sizeof(T));
memcpy(slice.location<void>(), values.start(), values.length() * sizeof(T));
memcpy(slice.location(), values.start(), values.length() * sizeof(T));
return slice;
}
} }
......@@ -148,9 +148,8 @@ struct ArraySlice {
size_t base_offset() {
return ByteArray::kHeaderSize - kHeapObjectTag + offset_;
}
template <typename T>
T* location() {
return reinterpret_cast<T*>(array_->GetDataStartAddress() + offset_);
void* location() {
return reinterpret_cast<void*>(array_->GetDataStartAddress() + offset_);
}
template <typename T>
T& at(int idx) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment