Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1279 DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumber); | 1279 DISALLOW_IMPLICIT_CONSTRUCTORS(HeapNumber); |
| 1280 }; | 1280 }; |
| 1281 | 1281 |
| 1282 | 1282 |
| 1283 // The JSObject describes real heap allocated JavaScript objects with | 1283 // The JSObject describes real heap allocated JavaScript objects with |
| 1284 // properties. | 1284 // properties. |
| 1285 // Note that the map of JSObject changes during execution to enable inline | 1285 // Note that the map of JSObject changes during execution to enable inline |
| 1286 // caching. | 1286 // caching. |
| 1287 class JSObject: public HeapObject { | 1287 class JSObject: public HeapObject { |
| 1288 public: | 1288 public: |
| 1289 enum DeleteMode { NORMAL_DELETION, FORCE_DELETION }; | 1289 enum DeleteMode { |
| 1290 NORMAL_DELETION, | |
| 1291 STRICT_DELETION, | |
| 1292 FORCE_DELETION | |
| 1293 }; | |
|
Martin Maly
2011/02/14 05:15:22
This enum felt like natural place to capture stric
| |
| 1294 | |
| 1290 enum ElementsKind { | 1295 enum ElementsKind { |
| 1291 // The only "fast" kind. | 1296 // The only "fast" kind. |
| 1292 FAST_ELEMENTS, | 1297 FAST_ELEMENTS, |
| 1293 // All the kinds below are "slow". | 1298 // All the kinds below are "slow". |
| 1294 DICTIONARY_ELEMENTS, | 1299 DICTIONARY_ELEMENTS, |
| 1295 PIXEL_ELEMENTS, | 1300 PIXEL_ELEMENTS, |
| 1296 EXTERNAL_BYTE_ELEMENTS, | 1301 EXTERNAL_BYTE_ELEMENTS, |
| 1297 EXTERNAL_UNSIGNED_BYTE_ELEMENTS, | 1302 EXTERNAL_UNSIGNED_BYTE_ELEMENTS, |
| 1298 EXTERNAL_SHORT_ELEMENTS, | 1303 EXTERNAL_SHORT_ELEMENTS, |
| 1299 EXTERNAL_UNSIGNED_SHORT_ELEMENTS, | 1304 EXTERNAL_UNSIGNED_SHORT_ELEMENTS, |
| (...skipping 5220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6520 } else { | 6525 } else { |
| 6521 value &= ~(1 << bit_position); | 6526 value &= ~(1 << bit_position); |
| 6522 } | 6527 } |
| 6523 return value; | 6528 return value; |
| 6524 } | 6529 } |
| 6525 }; | 6530 }; |
| 6526 | 6531 |
| 6527 } } // namespace v8::internal | 6532 } } // namespace v8::internal |
| 6528 | 6533 |
| 6529 #endif // V8_OBJECTS_H_ | 6534 #endif // V8_OBJECTS_H_ |
| OLD | NEW |