| 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 8519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8530 static const int kNextOffset = kTableOffset + kPointerSize; | 8530 static const int kNextOffset = kTableOffset + kPointerSize; |
| 8531 static const int kSize = kNextOffset + kPointerSize; | 8531 static const int kSize = kNextOffset + kPointerSize; |
| 8532 | 8532 |
| 8533 private: | 8533 private: |
| 8534 DISALLOW_IMPLICIT_CONSTRUCTORS(JSWeakMap); | 8534 DISALLOW_IMPLICIT_CONSTRUCTORS(JSWeakMap); |
| 8535 }; | 8535 }; |
| 8536 | 8536 |
| 8537 | 8537 |
| 8538 class JSArrayBuffer: public JSObject { | 8538 class JSArrayBuffer: public JSObject { |
| 8539 public: | 8539 public: |
| 8540 // [backing_store]: backing memory for thsi array | 8540 // [backing_store]: backing memory for this array |
| 8541 DECL_ACCESSORS(backing_store, void) | 8541 DECL_ACCESSORS(backing_store, void) |
| 8542 | 8542 |
| 8543 // [byte_length]: length in bytes | 8543 // [byte_length]: length in bytes |
| 8544 DECL_ACCESSORS(byte_length, Object) | 8544 DECL_ACCESSORS(byte_length, Object) |
| 8545 | 8545 |
| 8546 // Casting. | 8546 // Casting. |
| 8547 static inline JSArrayBuffer* cast(Object* obj); | 8547 static inline JSArrayBuffer* cast(Object* obj); |
| 8548 | 8548 |
| 8549 // Dispatched behavior. | 8549 // Dispatched behavior. |
| 8550 DECLARE_PRINTER(JSArrayBuffer) | 8550 DECLARE_PRINTER(JSArrayBuffer) |
| (...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9356 } else { | 9356 } else { |
| 9357 value &= ~(1 << bit_position); | 9357 value &= ~(1 << bit_position); |
| 9358 } | 9358 } |
| 9359 return value; | 9359 return value; |
| 9360 } | 9360 } |
| 9361 }; | 9361 }; |
| 9362 | 9362 |
| 9363 } } // namespace v8::internal | 9363 } } // namespace v8::internal |
| 9364 | 9364 |
| 9365 #endif // V8_OBJECTS_H_ | 9365 #endif // V8_OBJECTS_H_ |
| OLD | NEW |