Reviewers: Rico,
Description:
Fix compilation error.
Compiler cannot recognize the typename in template declaration. Caught by
MSVC.
[email protected]
Please review this at http://codereview.chromium.org/7237047/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/objects.cc
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index
4e0416dd12348a7f056099d3cb8e57a36c478f3e..4d70b32147318bdd8f27add24dac5245c1dd8230
100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -11227,7 +11227,7 @@ template<typename Shape, typename Key>
void Dictionary<Shape, Key>::CopyKeysTo(
FixedArray* storage,
PropertyAttributes filter,
- Dictionary<Shape, Key>::SortMode sort_mode) {
+ typename Dictionary<Shape, Key>::SortMode sort_mode) {
ASSERT(storage->length() >= NumberOfEnumElements());
int capacity = HashTable<Shape, Key>::Capacity();
int index = 0;
@@ -11270,7 +11270,7 @@ void StringDictionary::CopyEnumKeysTo(FixedArray*
storage,
template<typename Shape, typename Key>
void Dictionary<Shape, Key>::CopyKeysTo(
FixedArray* storage,
- Dictionary<Shape, Key>::SortMode sort_mode) {
+ typename Dictionary<Shape, Key>::SortMode sort_mode) {
ASSERT(storage->length() >= NumberOfElementsFilterAttributes(
static_cast<PropertyAttributes>(NONE)));
int capacity = HashTable<Shape, Key>::Capacity();
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev