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, ...@@ -71,7 +71,7 @@ ArraySlice ByteArrayProvider::GetBuffer(unsigned int size,
template <typename T> template <typename T>
ArraySlice ByteArrayProvider::GetBuffer(Vector<T> values) { ArraySlice ByteArrayProvider::GetBuffer(Vector<T> values) {
ArraySlice slice = GetBuffer(values.length(), sizeof(T)); 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; return slice;
} }
} } } }
...@@ -148,9 +148,8 @@ struct ArraySlice { ...@@ -148,9 +148,8 @@ struct ArraySlice {
size_t base_offset() { size_t base_offset() {
return ByteArray::kHeaderSize - kHeapObjectTag + offset_; return ByteArray::kHeaderSize - kHeapObjectTag + offset_;
} }
template <typename T> void* location() {
T* location() { return reinterpret_cast<void*>(array_->GetDataStartAddress() + offset_);
return reinterpret_cast<T*>(array_->GetDataStartAddress() + offset_);
} }
template <typename T> template <typename T>
T& at(int idx) { 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