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

Side by Side Diff: src/allocation-tracker.h

Issue 99193002: Remove all stuff marked as V8_DEPRECATED. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Created 7 years 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 | « include/v8-profiler.h ('k') | src/allocation-tracker.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 private: 105 private:
106 void AddFunctionInfo(SharedFunctionInfo* info, SnapshotObjectId id); 106 void AddFunctionInfo(SharedFunctionInfo* info, SnapshotObjectId id);
107 107
108 class UnresolvedLocation { 108 class UnresolvedLocation {
109 public: 109 public:
110 UnresolvedLocation(Script* script, int start, FunctionInfo* info); 110 UnresolvedLocation(Script* script, int start, FunctionInfo* info);
111 ~UnresolvedLocation(); 111 ~UnresolvedLocation();
112 void Resolve(); 112 void Resolve();
113 113
114 private: 114 private:
115 static void HandleWeakScript(v8::Isolate* isolate, 115 static void HandleWeakScript(
116 v8::Persistent<v8::Value>* obj, 116 const v8::WeakCallbackData<v8::Value, void>& data);
117 void* data); 117
118 Handle<Script> script_; 118 Handle<Script> script_;
119 int start_position_; 119 int start_position_;
120 FunctionInfo* info_; 120 FunctionInfo* info_;
121 }; 121 };
122 static void DeleteUnresolvedLocation(UnresolvedLocation** location); 122 static void DeleteUnresolvedLocation(UnresolvedLocation** location);
123 123
124 static const int kMaxAllocationTraceLength = 64; 124 static const int kMaxAllocationTraceLength = 64;
125 HeapObjectsMap* ids_; 125 HeapObjectsMap* ids_;
126 StringsStorage* names_; 126 StringsStorage* names_;
127 AllocationTraceTree trace_tree_; 127 AllocationTraceTree trace_tree_;
128 SnapshotObjectId allocation_trace_buffer_[kMaxAllocationTraceLength]; 128 SnapshotObjectId allocation_trace_buffer_[kMaxAllocationTraceLength];
129 HashMap id_to_function_info_; 129 HashMap id_to_function_info_;
130 List<UnresolvedLocation*> unresolved_locations_; 130 List<UnresolvedLocation*> unresolved_locations_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(AllocationTracker); 132 DISALLOW_COPY_AND_ASSIGN(AllocationTracker);
133 }; 133 };
134 134
135 } } // namespace v8::internal 135 } } // namespace v8::internal
136 136
137 #endif // V8_ALLOCATION_TRACKER_H_ 137 #endif // V8_ALLOCATION_TRACKER_H_
OLDNEW
« no previous file with comments | « include/v8-profiler.h ('k') | src/allocation-tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698