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 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1376 // Returns the class name ([[Class]] property in the specification). | 1376 // Returns the class name ([[Class]] property in the specification). |
1377 String* class_name(); | 1377 String* class_name(); |
1378 | 1378 |
1379 // Returns the constructor name (the name (possibly, inferred name) of the | 1379 // Returns the constructor name (the name (possibly, inferred name) of the |
1380 // function that was used to instantiate the object). | 1380 // function that was used to instantiate the object). |
1381 String* constructor_name(); | 1381 String* constructor_name(); |
1382 | 1382 |
1383 inline PropertyAttributes GetPropertyAttribute(String* name); | 1383 inline PropertyAttributes GetPropertyAttribute(String* name); |
1384 PropertyAttributes GetPropertyAttributeWithReceiver(JSReceiver* receiver, | 1384 PropertyAttributes GetPropertyAttributeWithReceiver(JSReceiver* receiver, |
1385 String* name); | 1385 String* name); |
| 1386 PropertyAttributes TryGetPropertyAttribute(Handle<Object> key, |
| 1387 bool* has_pending_exception); |
1386 PropertyAttributes GetLocalPropertyAttribute(String* name); | 1388 PropertyAttributes GetLocalPropertyAttribute(String* name); |
1387 | 1389 |
1388 // Can cause a GC. | 1390 // Can cause a GC. |
1389 bool HasProperty(String* name) { | 1391 bool HasProperty(String* name) { |
1390 return GetPropertyAttribute(name) != ABSENT; | 1392 return GetPropertyAttribute(name) != ABSENT; |
1391 } | 1393 } |
1392 | 1394 |
1393 // Can cause a GC. | 1395 // Can cause a GC. |
1394 bool HasLocalProperty(String* name) { | 1396 bool HasLocalProperty(String* name) { |
1395 return GetLocalPropertyAttribute(name) != ABSENT; | 1397 return GetLocalPropertyAttribute(name) != ABSENT; |
(...skipping 5762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7158 } else { | 7160 } else { |
7159 value &= ~(1 << bit_position); | 7161 value &= ~(1 << bit_position); |
7160 } | 7162 } |
7161 return value; | 7163 return value; |
7162 } | 7164 } |
7163 }; | 7165 }; |
7164 | 7166 |
7165 } } // namespace v8::internal | 7167 } } // namespace v8::internal |
7166 | 7168 |
7167 #endif // V8_OBJECTS_H_ | 7169 #endif // V8_OBJECTS_H_ |
OLD | NEW |