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

Side by Side Diff: src/profile-generator.h

Issue 4681003: Heap profiler: remove context checks for objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 years, 1 month 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 | « no previous file | src/profile-generator.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 HeapEntry* child_entry) = 0; 941 HeapEntry* child_entry) = 0;
942 virtual void SetRootReference(Object* child_obj, 942 virtual void SetRootReference(Object* child_obj,
943 HeapEntry* child_entry) = 0; 943 HeapEntry* child_entry) = 0;
944 }; 944 };
945 945
946 explicit HeapSnapshotGenerator(HeapSnapshot* snapshot); 946 explicit HeapSnapshotGenerator(HeapSnapshot* snapshot);
947 void GenerateSnapshot(); 947 void GenerateSnapshot();
948 948
949 private: 949 private:
950 HeapEntry* GetEntry(Object* obj); 950 HeapEntry* GetEntry(Object* obj);
951 int GetGlobalSecurityToken();
952 int GetObjectSecurityToken(HeapObject* obj);
953 void ExtractReferences(HeapObject* obj); 951 void ExtractReferences(HeapObject* obj);
954 void ExtractClosureReferences(JSObject* js_obj, HeapEntry* entry); 952 void ExtractClosureReferences(JSObject* js_obj, HeapEntry* entry);
955 void ExtractPropertyReferences(JSObject* js_obj, HeapEntry* entry); 953 void ExtractPropertyReferences(JSObject* js_obj, HeapEntry* entry);
956 void ExtractElementReferences(JSObject* js_obj, HeapEntry* entry); 954 void ExtractElementReferences(JSObject* js_obj, HeapEntry* entry);
957 void ExtractInternalReferences(JSObject* js_obj, HeapEntry* entry); 955 void ExtractInternalReferences(JSObject* js_obj, HeapEntry* entry);
958 void SetClosureReference(HeapObject* parent_obj, 956 void SetClosureReference(HeapObject* parent_obj,
959 HeapEntry* parent, 957 HeapEntry* parent,
960 String* reference_name, 958 String* reference_name,
961 Object* child); 959 Object* child);
962 void SetElementReference(HeapObject* parent_obj, 960 void SetElementReference(HeapObject* parent_obj,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 friend class HeapSnapshotJSONSerializerIterator; 1033 friend class HeapSnapshotJSONSerializerIterator;
1036 1034
1037 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); 1035 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer);
1038 }; 1036 };
1039 1037
1040 } } // namespace v8::internal 1038 } } // namespace v8::internal
1041 1039
1042 #endif // ENABLE_LOGGING_AND_PROFILING 1040 #endif // ENABLE_LOGGING_AND_PROFILING
1043 1041
1044 #endif // V8_PROFILE_GENERATOR_H_ 1042 #endif // V8_PROFILE_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698