Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(905)

Unified Diff: src/objects.cc

Issue 23064017: Use V8_FINAL and V8_OVERRIDE in various places, fixing bugs revealed by them. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use V8_FINAL and V8_OVERRIDE instead. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index f6cbf5493d37515608a5abc6e65a2f0654668eee..ab4fec64ea8430eacfd6e0884fa7c892d5152030 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -7032,7 +7032,7 @@ void Map::RemoveFromCodeCache(Name* name, Code* code, int index) {
// An iterator over all map transitions in an descriptor array, reusing the map
// field of the contens array while it is running.
-class IntrusiveMapTransitionIterator FINAL {
+class IntrusiveMapTransitionIterator V8_FINAL {
public:
explicit IntrusiveMapTransitionIterator(TransitionArray* transition_array)
: transition_array_(transition_array) { }
@@ -7070,7 +7070,7 @@ class IntrusiveMapTransitionIterator FINAL {
// An iterator over all prototype transitions, reusing the map field of the
// underlying array while it is running.
-class IntrusivePrototypeTransitionIterator FINAL {
+class IntrusivePrototypeTransitionIterator V8_FINAL {
public:
explicit IntrusivePrototypeTransitionIterator(HeapObject* proto_trans)
: proto_trans_(proto_trans) { }
@@ -7143,7 +7143,7 @@ class IntrusivePrototypeTransitionIterator FINAL {
//
// Note that the child iterator is just a concatenation of two iterators: One
// iterating over map transitions and one iterating over prototype transisitons.
-class TraversableMap FINAL : public Map {
+class TraversableMap V8_FINAL : public Map {
public:
// Record the parent in the traversal within this map. Note that this destroys
// this map's map!
@@ -7391,7 +7391,7 @@ void CodeCache::RemoveByIndex(Object* name, Code* code, int index) {
// code object. The actual match is on the name and the code flags. If a key
// is created using the flags and not a code object it can only be used for
// lookup not to create a new entry.
-class CodeCacheHashTableKey FINAL : public HashTableKey {
+class CodeCacheHashTableKey V8_FINAL : public HashTableKey {
public:
CodeCacheHashTableKey(Name* name, Code::Flags flags)
: name_(name), flags_(flags), code_(NULL) { }
@@ -7546,7 +7546,7 @@ Handle<Object> PolymorphicCodeCache::Lookup(MapHandleList* maps,
// Despite their name, object of this class are not stored in the actual
// hash table; instead they're temporarily used for lookups. It is therefore
// safe to have a weak (non-owning) pointer to a MapList as a member field.
-class PolymorphicCodeCacheHashTableKey FINAL : public HashTableKey {
+class PolymorphicCodeCacheHashTableKey V8_FINAL : public HashTableKey {
public:
// Callers must ensure that |maps| outlives the newly constructed object.
PolymorphicCodeCacheHashTableKey(MapHandleList* maps, int code_flags)
@@ -8546,7 +8546,7 @@ static inline bool CompareRawStringContents(const Char* const a,
template<typename Chars1, typename Chars2>
-class RawStringComparator FINAL : public AllStatic {
+class RawStringComparator V8_FINAL : public AllStatic {
public:
static inline bool compare(const Chars1* a, const Chars2* b, int len) {
ASSERT(sizeof(Chars1) != sizeof(Chars2));
@@ -8561,7 +8561,7 @@ class RawStringComparator FINAL : public AllStatic {
template<>
-class RawStringComparator<uint16_t, uint16_t> FINAL {
+class RawStringComparator<uint16_t, uint16_t> V8_FINAL {
public:
static inline bool compare(const uint16_t* a, const uint16_t* b, int len) {
return CompareRawStringContents(a, b, len);
@@ -8570,7 +8570,7 @@ class RawStringComparator<uint16_t, uint16_t> FINAL {
template<>
-class RawStringComparator<uint8_t, uint8_t> FINAL {
+class RawStringComparator<uint8_t, uint8_t> V8_FINAL {
public:
static inline bool compare(const uint8_t* a, const uint8_t* b, int len) {
return CompareRawStringContents(a, b, len);
@@ -8578,8 +8578,8 @@ class RawStringComparator<uint8_t, uint8_t> FINAL {
};
-class StringComparator FINAL {
- class State FINAL {
+class StringComparator V8_FINAL {
+ class State V8_FINAL {
public:
explicit inline State(ConsStringIteratorOp* op)
: op_(op), is_one_byte_(true), length_(0), buffer8_(NULL) {}
@@ -8815,7 +8815,7 @@ bool String::IsTwoByteEqualTo(Vector<const uc16> str) {
}
-class IteratingStringHasher FINAL : public StringHasher {
+class IteratingStringHasher V8_FINAL : public StringHasher {
public:
static inline uint32_t Hash(String* string, uint32_t seed) {
const unsigned len = static_cast<unsigned>(string->length());
@@ -13279,7 +13279,7 @@ int JSObject::GetEnumElementKeys(FixedArray* storage) {
// StringKey simply carries a string object as key.
-class StringKey FINAL : public HashTableKey {
+class StringKey V8_FINAL : public HashTableKey {
public:
explicit StringKey(String* string) :
string_(string),
@@ -13306,7 +13306,7 @@ class StringKey FINAL : public HashTableKey {
// StringSharedKeys are used as keys in the eval cache.
-class StringSharedKey FINAL : public HashTableKey {
+class StringSharedKey V8_FINAL : public HashTableKey {
public:
StringSharedKey(String* source,
SharedFunctionInfo* shared,
@@ -13395,7 +13395,7 @@ class StringSharedKey FINAL : public HashTableKey {
// RegExpKey carries the source and flags of a regular expression as key.
-class RegExpKey FINAL : public HashTableKey {
+class RegExpKey V8_FINAL : public HashTableKey {
public:
RegExpKey(String* string, JSRegExp::Flags flags)
: string_(string),
@@ -13436,7 +13436,7 @@ class RegExpKey FINAL : public HashTableKey {
// Utf8StringKey carries a vector of chars as key.
-class Utf8StringKey FINAL : public HashTableKey {
+class Utf8StringKey V8_FINAL : public HashTableKey {
public:
explicit Utf8StringKey(Vector<const char> string, uint32_t seed)
: string_(string), hash_field_(0), seed_(seed) { }
@@ -13499,7 +13499,7 @@ class SequentialStringKey : public HashTableKey {
-class OneByteStringKey FINAL : public SequentialStringKey<uint8_t> {
+class OneByteStringKey V8_FINAL : public SequentialStringKey<uint8_t> {
public:
OneByteStringKey(Vector<const uint8_t> str, uint32_t seed)
: SequentialStringKey<uint8_t>(str, seed) { }
@@ -13515,7 +13515,7 @@ class OneByteStringKey FINAL : public SequentialStringKey<uint8_t> {
};
-class SubStringOneByteStringKey FINAL : public HashTableKey {
+class SubStringOneByteStringKey V8_FINAL : public HashTableKey {
public:
explicit SubStringOneByteStringKey(Handle<SeqOneByteString> string,
int from,
@@ -13557,7 +13557,7 @@ class SubStringOneByteStringKey FINAL : public HashTableKey {
};
-class TwoByteStringKey FINAL : public SequentialStringKey<uc16> {
+class TwoByteStringKey V8_FINAL : public SequentialStringKey<uc16> {
public:
explicit TwoByteStringKey(Vector<const uc16> str, uint32_t seed)
: SequentialStringKey<uc16>(str, seed) { }
@@ -13574,7 +13574,7 @@ class TwoByteStringKey FINAL : public SequentialStringKey<uc16> {
// InternalizedStringKey carries a string/internalized-string object as key.
-class InternalizedStringKey FINAL : public HashTableKey {
+class InternalizedStringKey V8_FINAL : public HashTableKey {
public:
explicit InternalizedStringKey(String* string)
: string_(string) { }
@@ -14424,7 +14424,7 @@ MaybeObject* StringTable::LookupString(String* string, Object** s) {
// string hash calculation loop here for speed. Doesn't work if the two
// characters form a decimal integer, since such strings have a different hash
// algorithm.
-class TwoCharHashTableKey FINAL : public HashTableKey {
+class TwoCharHashTableKey V8_FINAL : public HashTableKey {
public:
TwoCharHashTableKey(uint16_t c1, uint16_t c2, uint32_t seed)
: c1_(c1), c2_(c2) {
@@ -14713,7 +14713,7 @@ void CompilationCacheTable::Remove(Object* value) {
// StringsKey used for HashTable where key is array of internalized strings.
-class StringsKey FINAL : public HashTableKey {
+class StringsKey V8_FINAL : public HashTableKey {
public:
explicit StringsKey(FixedArray* strings) : strings_(strings) { }
« no previous file with comments | « src/objects.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698