OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1384 // Returns the class name ([[Class]] property in the specification). | 1384 // Returns the class name ([[Class]] property in the specification). |
1385 String* class_name(); | 1385 String* class_name(); |
1386 | 1386 |
1387 // Returns the constructor name (the name (possibly, inferred name) of the | 1387 // Returns the constructor name (the name (possibly, inferred name) of the |
1388 // function that was used to instantiate the object). | 1388 // function that was used to instantiate the object). |
1389 String* constructor_name(); | 1389 String* constructor_name(); |
1390 | 1390 |
1391 inline PropertyAttributes GetPropertyAttribute(String* name); | 1391 inline PropertyAttributes GetPropertyAttribute(String* name); |
1392 PropertyAttributes GetPropertyAttributeWithReceiver(JSReceiver* receiver, | 1392 PropertyAttributes GetPropertyAttributeWithReceiver(JSReceiver* receiver, |
1393 String* name); | 1393 String* name); |
| 1394 PropertyAttributes TryGetPropertyAttribute(Handle<Object> key, |
| 1395 bool* has_pending_exception); |
1394 PropertyAttributes GetLocalPropertyAttribute(String* name); | 1396 PropertyAttributes GetLocalPropertyAttribute(String* name); |
1395 | 1397 |
1396 // Can cause a GC. | 1398 // Can cause a GC. |
1397 bool HasProperty(String* name) { | 1399 bool HasProperty(String* name) { |
1398 return GetPropertyAttribute(name) != ABSENT; | 1400 return GetPropertyAttribute(name) != ABSENT; |
1399 } | 1401 } |
1400 | 1402 |
1401 // Can cause a GC. | 1403 // Can cause a GC. |
1402 bool HasLocalProperty(String* name) { | 1404 bool HasLocalProperty(String* name) { |
1403 return GetLocalPropertyAttribute(name) != ABSENT; | 1405 return GetLocalPropertyAttribute(name) != ABSENT; |
(...skipping 5760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7164 } else { | 7166 } else { |
7165 value &= ~(1 << bit_position); | 7167 value &= ~(1 << bit_position); |
7166 } | 7168 } |
7167 return value; | 7169 return value; |
7168 } | 7170 } |
7169 }; | 7171 }; |
7170 | 7172 |
7171 } } // namespace v8::internal | 7173 } } // namespace v8::internal |
7172 | 7174 |
7173 #endif // V8_OBJECTS_H_ | 7175 #endif // V8_OBJECTS_H_ |
OLD | NEW |