| 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 8560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8571 static const int kNextOffset = kTableOffset + kPointerSize; | 8571 static const int kNextOffset = kTableOffset + kPointerSize; |
| 8572 static const int kSize = kNextOffset + kPointerSize; | 8572 static const int kSize = kNextOffset + kPointerSize; |
| 8573 | 8573 |
| 8574 private: | 8574 private: |
| 8575 DISALLOW_IMPLICIT_CONSTRUCTORS(JSWeakMap); | 8575 DISALLOW_IMPLICIT_CONSTRUCTORS(JSWeakMap); |
| 8576 }; | 8576 }; |
| 8577 | 8577 |
| 8578 | 8578 |
| 8579 class JSArrayBuffer: public JSObject { | 8579 class JSArrayBuffer: public JSObject { |
| 8580 public: | 8580 public: |
| 8581 // [backing_store]: backing memory for thsi array | 8581 // [backing_store]: backing memory for this array |
| 8582 DECL_ACCESSORS(backing_store, void) | 8582 DECL_ACCESSORS(backing_store, void) |
| 8583 | 8583 |
| 8584 // [byte_length]: length in bytes | 8584 // [byte_length]: length in bytes |
| 8585 DECL_ACCESSORS(byte_length, Object) | 8585 DECL_ACCESSORS(byte_length, Object) |
| 8586 | 8586 |
| 8587 // Casting. | 8587 // Casting. |
| 8588 static inline JSArrayBuffer* cast(Object* obj); | 8588 static inline JSArrayBuffer* cast(Object* obj); |
| 8589 | 8589 |
| 8590 // Dispatched behavior. | 8590 // Dispatched behavior. |
| 8591 DECLARE_PRINTER(JSArrayBuffer) | 8591 DECLARE_PRINTER(JSArrayBuffer) |
| (...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9429 } else { | 9429 } else { |
| 9430 value &= ~(1 << bit_position); | 9430 value &= ~(1 << bit_position); |
| 9431 } | 9431 } |
| 9432 return value; | 9432 return value; |
| 9433 } | 9433 } |
| 9434 }; | 9434 }; |
| 9435 | 9435 |
| 9436 } } // namespace v8::internal | 9436 } } // namespace v8::internal |
| 9437 | 9437 |
| 9438 #endif // V8_OBJECTS_H_ | 9438 #endif // V8_OBJECTS_H_ |
| OLD | NEW |