Reviewers: Sven Panne,
Description:
Fix Windows compilation.
[email protected]
Committed: https://code.google.com/p/v8/source/detail?r=10807
Please review this at https://chromiumcodereview.appspot.com/9456006/
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M src/hashmap.h
Index: src/hashmap.h
===================================================================
--- src/hashmap.h (revision 10806)
+++ src/hashmap.h (working copy)
@@ -116,7 +116,7 @@
template<class P>
-struct TemplateHashMap<P>::Entry* TemplateHashMap<P>::Lookup(
+typename TemplateHashMap<P>::Entry* TemplateHashMap<P>::Lookup(
void* key, uint32_t hash, bool insert) {
// Find a matching entry.
Entry* p = Probe(key, hash);
@@ -217,13 +217,13 @@
template<class P>
-struct TemplateHashMap<P>::Entry* TemplateHashMap<P>::Start() const {
+typename TemplateHashMap<P>::Entry* TemplateHashMap<P>::Start() const {
return Next(map_ - 1);
}
template<class P>
-struct TemplateHashMap<P>::Entry* TemplateHashMap<P>::Next(Entry* p) const
{
+typename TemplateHashMap<P>::Entry* TemplateHashMap<P>::Next(Entry* p)
const {
const Entry* end = map_end();
ASSERT(map_ - 1 <= p && p < end);
for (p++; p < end; p++) {
@@ -236,7 +236,7 @@
template<class P>
-struct TemplateHashMap<P>::Entry* TemplateHashMap<P>::Probe(void* key,
+typename TemplateHashMap<P>::Entry* TemplateHashMap<P>::Probe(void* key,
uint32_t hash)
{
ASSERT(key != NULL);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev