Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: src/objects.h

Issue 25655004: Print out how many AllocationMementos were found during mark-sweep. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698