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 7871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7882 bool IsValid() { return allocation_site()->IsAllocationSite(); } | 7882 bool IsValid() { return allocation_site()->IsAllocationSite(); } |
7883 AllocationSite* GetAllocationSite() { | 7883 AllocationSite* GetAllocationSite() { |
7884 ASSERT(IsValid()); | 7884 ASSERT(IsValid()); |
7885 return AllocationSite::cast(allocation_site()); | 7885 return AllocationSite::cast(allocation_site()); |
7886 } | 7886 } |
7887 | 7887 |
7888 DECLARE_PRINTER(AllocationMemento) | 7888 DECLARE_PRINTER(AllocationMemento) |
7889 DECLARE_VERIFIER(AllocationMemento) | 7889 DECLARE_VERIFIER(AllocationMemento) |
7890 | 7890 |
7891 // Returns NULL if no AllocationMemento is available for object. | 7891 // Returns NULL if no AllocationMemento is available for object. |
7892 static AllocationMemento* FindForJSObject(JSObject* object); | 7892 static AllocationMemento* FindForJSObject(JSObject* object, |
| 7893 bool in_GC = false); |
7893 static inline AllocationMemento* cast(Object* obj); | 7894 static inline AllocationMemento* cast(Object* obj); |
7894 | 7895 |
7895 private: | 7896 private: |
7896 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento); | 7897 DISALLOW_IMPLICIT_CONSTRUCTORS(AllocationMemento); |
7897 }; | 7898 }; |
7898 | 7899 |
7899 | 7900 |
7900 // Representation of a slow alias as part of a non-strict arguments objects. | 7901 // Representation of a slow alias as part of a non-strict arguments objects. |
7901 // For fast aliases (if HasNonStrictArgumentsElements()): | 7902 // For fast aliases (if HasNonStrictArgumentsElements()): |
7902 // - the parameter map contains an index into the context | 7903 // - the parameter map contains an index into the context |
(...skipping 2330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10233 } else { | 10234 } else { |
10234 value &= ~(1 << bit_position); | 10235 value &= ~(1 << bit_position); |
10235 } | 10236 } |
10236 return value; | 10237 return value; |
10237 } | 10238 } |
10238 }; | 10239 }; |
10239 | 10240 |
10240 } } // namespace v8::internal | 10241 } } // namespace v8::internal |
10241 | 10242 |
10242 #endif // V8_OBJECTS_H_ | 10243 #endif // V8_OBJECTS_H_ |
OLD | NEW |