OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 JSReceiver* getter); | 1012 JSReceiver* getter); |
1013 | 1013 |
1014 static Handle<Object> GetElement(Handle<Object> object, uint32_t index); | 1014 static Handle<Object> GetElement(Handle<Object> object, uint32_t index); |
1015 MUST_USE_RESULT inline MaybeObject* GetElement(uint32_t index); | 1015 MUST_USE_RESULT inline MaybeObject* GetElement(uint32_t index); |
1016 // For use when we know that no exception can be thrown. | 1016 // For use when we know that no exception can be thrown. |
1017 inline Object* GetElementNoExceptionThrown(uint32_t index); | 1017 inline Object* GetElementNoExceptionThrown(uint32_t index); |
1018 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Object* receiver, | 1018 MUST_USE_RESULT MaybeObject* GetElementWithReceiver(Object* receiver, |
1019 uint32_t index); | 1019 uint32_t index); |
1020 | 1020 |
1021 // Return the object's prototype (might be Heap::null_value()). | 1021 // Return the object's prototype (might be Heap::null_value()). |
1022 Object* GetPrototype(); | 1022 Object* GetPrototype(Isolate* isolate); |
1023 | 1023 |
1024 // Returns the permanent hash code associated with this object depending on | 1024 // Returns the permanent hash code associated with this object depending on |
1025 // the actual object type. Might return a failure in case no hash was | 1025 // the actual object type. Might return a failure in case no hash was |
1026 // created yet or GC was caused by creation. | 1026 // created yet or GC was caused by creation. |
1027 MUST_USE_RESULT MaybeObject* GetHash(CreationFlag flag); | 1027 MUST_USE_RESULT MaybeObject* GetHash(CreationFlag flag); |
1028 | 1028 |
1029 // Checks whether this object has the same value as the given one. This | 1029 // Checks whether this object has the same value as the given one. This |
1030 // function is implemented according to ES5, section 9.12 and can be used | 1030 // function is implemented according to ES5, section 9.12 and can be used |
1031 // to implement the Harmony "egal" function. | 1031 // to implement the Harmony "egal" function. |
1032 bool SameValue(Object* other); | 1032 bool SameValue(Object* other); |
(...skipping 7983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9016 } else { | 9016 } else { |
9017 value &= ~(1 << bit_position); | 9017 value &= ~(1 << bit_position); |
9018 } | 9018 } |
9019 return value; | 9019 return value; |
9020 } | 9020 } |
9021 }; | 9021 }; |
9022 | 9022 |
9023 } } // namespace v8::internal | 9023 } } // namespace v8::internal |
9024 | 9024 |
9025 #endif // V8_OBJECTS_H_ | 9025 #endif // V8_OBJECTS_H_ |
OLD | NEW |