Chromium Code Reviews| 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 2316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2327 // [length]: length of the array. | 2327 // [length]: length of the array. |
| 2328 inline int length(); | 2328 inline int length(); |
| 2329 inline void set_length(int value); | 2329 inline void set_length(int value); |
| 2330 | 2330 |
| 2331 inline static FixedArrayBase* cast(Object* object); | 2331 inline static FixedArrayBase* cast(Object* object); |
| 2332 | 2332 |
| 2333 // Layout description. | 2333 // Layout description. |
| 2334 // Length is smi tagged when it is stored. | 2334 // Length is smi tagged when it is stored. |
| 2335 static const int kLengthOffset = HeapObject::kHeaderSize; | 2335 static const int kLengthOffset = HeapObject::kHeaderSize; |
| 2336 static const int kHeaderSize = kLengthOffset + kPointerSize; | 2336 static const int kHeaderSize = kLengthOffset + kPointerSize; |
| 2337 | |
| 2338 inline ElementsKind GetElementsKind(); | |
|
Michael Starzinger
2012/11/29 09:39:32
See comments in objects-inl.h about this method.
Toon Verwaest
2012/11/29 14:04:40
Done.
| |
| 2337 }; | 2339 }; |
| 2338 | 2340 |
| 2339 | 2341 |
| 2340 class FixedDoubleArray; | 2342 class FixedDoubleArray; |
| 2341 class IncrementalMarking; | 2343 class IncrementalMarking; |
| 2342 | 2344 |
| 2343 | 2345 |
| 2344 // FixedArray describes fixed-sized arrays with element type Object*. | 2346 // FixedArray describes fixed-sized arrays with element type Object*. |
| 2345 class FixedArray: public FixedArrayBase { | 2347 class FixedArray: public FixedArrayBase { |
| 2346 public: | 2348 public: |
| (...skipping 6655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9002 } else { | 9004 } else { |
| 9003 value &= ~(1 << bit_position); | 9005 value &= ~(1 << bit_position); |
| 9004 } | 9006 } |
| 9005 return value; | 9007 return value; |
| 9006 } | 9008 } |
| 9007 }; | 9009 }; |
| 9008 | 9010 |
| 9009 } } // namespace v8::internal | 9011 } } // namespace v8::internal |
| 9010 | 9012 |
| 9011 #endif // V8_OBJECTS_H_ | 9013 #endif // V8_OBJECTS_H_ |
| OLD | NEW |