Fix lint errors.
TBR=christian.plesner.hansen@gmail.com Review URL: http://codereview.chromium.org/249056 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3002 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
52d87249cb
commit
226b3de18e
@ -76,7 +76,7 @@ class Arguments BASE_EMBEDDED {
|
|||||||
// accessed through an Arguments object the same way the actual stack
|
// accessed through an Arguments object the same way the actual stack
|
||||||
// can.
|
// can.
|
||||||
class CustomArguments : public Relocatable {
|
class CustomArguments : public Relocatable {
|
||||||
public:
|
public:
|
||||||
inline CustomArguments(Object *data,
|
inline CustomArguments(Object *data,
|
||||||
JSObject *self,
|
JSObject *self,
|
||||||
JSObject *holder) {
|
JSObject *holder) {
|
||||||
@ -87,7 +87,7 @@ public:
|
|||||||
}
|
}
|
||||||
void IterateInstance(ObjectVisitor* v);
|
void IterateInstance(ObjectVisitor* v);
|
||||||
Object** end() { return values_ + 3; }
|
Object** end() { return values_ + 3; }
|
||||||
private:
|
private:
|
||||||
Object* values_[4];
|
Object* values_[4];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4223,9 +4223,11 @@ class ExternalTwoByteString: public ExternalString {
|
|||||||
// on gc. It provides two ways for the gc to update instances, either
|
// on gc. It provides two ways for the gc to update instances, either
|
||||||
// iterating or updating after gc.
|
// iterating or updating after gc.
|
||||||
class Relocatable BASE_EMBEDDED {
|
class Relocatable BASE_EMBEDDED {
|
||||||
public:
|
public:
|
||||||
inline Relocatable() : prev_(top_) { top_ = this; }
|
inline Relocatable() : prev_(top_) { top_ = this; }
|
||||||
virtual ~Relocatable() { ASSERT_EQ(top_, this); top_ = prev_; }
|
virtual ~Relocatable() {
|
||||||
|
ASSERT_EQ(top_, this);
|
||||||
|
top_ = prev_; }
|
||||||
virtual void IterateInstance(ObjectVisitor* v) { }
|
virtual void IterateInstance(ObjectVisitor* v) { }
|
||||||
virtual void PostGarbageCollection() { }
|
virtual void PostGarbageCollection() { }
|
||||||
|
|
||||||
@ -4236,7 +4238,7 @@ public:
|
|||||||
static void Iterate(ObjectVisitor* v);
|
static void Iterate(ObjectVisitor* v);
|
||||||
static void Iterate(ObjectVisitor* v, Relocatable* top);
|
static void Iterate(ObjectVisitor* v, Relocatable* top);
|
||||||
static char* Iterate(ObjectVisitor* v, char* t);
|
static char* Iterate(ObjectVisitor* v, char* t);
|
||||||
private:
|
private:
|
||||||
static Relocatable* top_;
|
static Relocatable* top_;
|
||||||
Relocatable* prev_;
|
Relocatable* prev_;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user