Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index fcb850b64b957d08de8d6da2afd55427d36f1d26..2bedc5fa148c57dd165007ba854bbd7c120ebcdd 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -973,6 +973,7 @@ class Object : public MaybeObject { |
| String* key, |
| PropertyAttributes* attributes); |
| + static Handle<Object> GetProperty(Handle<Object> object, Handle<String> key); |
| static Handle<Object> GetProperty(Handle<Object> object, |
| Handle<Object> receiver, |
| LookupResult* result, |
| @@ -1846,29 +1847,10 @@ class JSObject: public JSReceiver { |
| PropertyType GetLocalPropertyType(String* name); |
| PropertyType GetLocalElementType(uint32_t index); |
| + // These methods do not perform access checks! |
|
Michael Starzinger
2012/11/15 21:45:37
Add empty newline above the comment.
rossberg
2012/11/16 12:50:02
Done.
|
| AccessorPair* GetLocalPropertyAccessorPair(String* name); |
| AccessorPair* GetLocalElementAccessorPair(uint32_t index); |
| - // Tells whether the index'th element is present and how it is stored. |
| - enum LocalElementKind { |
|
Michael Starzinger
2012/11/15 21:45:37
Oh yeah, LocalElementKind be gone. I like that!
|
| - // There is no element with given index. |
| - UNDEFINED_ELEMENT, |
| - |
| - // Element with given index is handled by interceptor. |
| - INTERCEPTED_ELEMENT, |
| - |
| - // Element with given index is character in string. |
| - STRING_CHARACTER_ELEMENT, |
| - |
| - // Element with given index is stored in fast backing store. |
| - FAST_ELEMENT, |
| - |
| - // Element with given index is stored in slow backing store. |
| - DICTIONARY_ELEMENT |
| - }; |
| - |
| - LocalElementKind GetLocalElementKind(uint32_t index); |
| - |
| MUST_USE_RESULT MaybeObject* SetFastElement(uint32_t index, |
| Object* value, |
| StrictModeFlag strict_mode, |