| 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 6879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6890 | 6890 |
| 6891 private: | 6891 private: |
| 6892 DISALLOW_IMPLICIT_CONSTRUCTORS(JSFunctionProxy); | 6892 DISALLOW_IMPLICIT_CONSTRUCTORS(JSFunctionProxy); |
| 6893 }; | 6893 }; |
| 6894 | 6894 |
| 6895 | 6895 |
| 6896 // The JSWeakMap describes EcmaScript Harmony weak maps | 6896 // The JSWeakMap describes EcmaScript Harmony weak maps |
| 6897 class JSWeakMap: public JSObject { | 6897 class JSWeakMap: public JSObject { |
| 6898 public: | 6898 public: |
| 6899 // [table]: the backing hash table mapping keys to values. | 6899 // [table]: the backing hash table mapping keys to values. |
| 6900 DECL_ACCESSORS(table, ObjectHashTable) | 6900 DECL_ACCESSORS(table, Object) |
| 6901 | 6901 |
| 6902 // [next]: linked list of encountered weak maps during GC. | 6902 // [next]: linked list of encountered weak maps during GC. |
| 6903 DECL_ACCESSORS(next, Object) | 6903 DECL_ACCESSORS(next, Object) |
| 6904 | 6904 |
| 6905 // Unchecked accessors to be used during GC. | 6905 // Unchecked accessors to be used during GC. |
| 6906 inline ObjectHashTable* unchecked_table(); | 6906 inline ObjectHashTable* unchecked_table(); |
| 6907 | 6907 |
| 6908 // Casting. | 6908 // Casting. |
| 6909 static inline JSWeakMap* cast(Object* obj); | 6909 static inline JSWeakMap* cast(Object* obj); |
| 6910 | 6910 |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7570 } else { | 7570 } else { |
| 7571 value &= ~(1 << bit_position); | 7571 value &= ~(1 << bit_position); |
| 7572 } | 7572 } |
| 7573 return value; | 7573 return value; |
| 7574 } | 7574 } |
| 7575 }; | 7575 }; |
| 7576 | 7576 |
| 7577 } } // namespace v8::internal | 7577 } } // namespace v8::internal |
| 7578 | 7578 |
| 7579 #endif // V8_OBJECTS_H_ | 7579 #endif // V8_OBJECTS_H_ |
| OLD | NEW |