| Index: src/property.h
|
| diff --git a/src/property.h b/src/property.h
|
| index c50696b186b241d5af77dc8731a13f59c64d5102..2c05188359b9f4c3fd1cb335457153bd8e1c8e9a 100644
|
| --- a/src/property.h
|
| +++ b/src/property.h
|
| @@ -9,6 +9,7 @@
|
| #include "src/field-index.h"
|
| #include "src/field-index-inl.h"
|
| #include "src/isolate.h"
|
| +#include "src/ostreams.h"
|
| #include "src/types.h"
|
|
|
| namespace v8 {
|
| @@ -28,13 +29,9 @@ class Descriptor BASE_EMBEDDED {
|
| }
|
| }
|
|
|
| - Handle<Name> GetKey() { return key_; }
|
| - Handle<Object> GetValue() { return value_; }
|
| - PropertyDetails GetDetails() { return details_; }
|
| -
|
| -#ifdef OBJECT_PRINT
|
| - void Print(FILE* out);
|
| -#endif
|
| + Handle<Name> GetKey() const { return key_; }
|
| + Handle<Object> GetValue() const { return value_; }
|
| + PropertyDetails GetDetails() const { return details_; }
|
|
|
| void SetSortedKeyIndex(int index) { details_ = details_.set_pointer(index); }
|
|
|
| @@ -72,6 +69,9 @@ class Descriptor BASE_EMBEDDED {
|
| };
|
|
|
|
|
| +OStream& operator<<(OStream& os, const Descriptor& d);
|
| +
|
| +
|
| class FieldDescriptor V8_FINAL : public Descriptor {
|
| public:
|
| FieldDescriptor(Handle<Name> key,
|
| @@ -408,10 +408,6 @@ class LookupResult V8_FINAL BASE_EMBEDDED {
|
| return GetValue();
|
| }
|
|
|
| -#ifdef OBJECT_PRINT
|
| - void Print(FILE* out);
|
| -#endif
|
| -
|
| Object* GetValue() const {
|
| if (lookup_type_ == DESCRIPTOR_TYPE) {
|
| return GetValueFromMap(holder()->map());
|
| @@ -487,6 +483,8 @@ class LookupResult V8_FINAL BASE_EMBEDDED {
|
| PropertyDetails details_;
|
| };
|
|
|
| +
|
| +OStream& operator<<(OStream& os, const LookupResult& r);
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_PROPERTY_H_
|
|
|