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

Side by Side Diff: src/api.cc

Issue 9858016: I'd like to add HeapSnapshot::GetMaxSnapshotJSObjectId function. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: printf was removed, typo was fixed. Created 8 years, 8 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
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 6139 matching lines...) Expand 10 before | Expand all | Expand 10 after
6150 6150
6151 6151
6152 const HeapGraphNode* HeapSnapshot::GetNode(int index) const { 6152 const HeapGraphNode* HeapSnapshot::GetNode(int index) const {
6153 i::Isolate* isolate = i::Isolate::Current(); 6153 i::Isolate* isolate = i::Isolate::Current();
6154 IsDeadCheck(isolate, "v8::HeapSnapshot::GetNode"); 6154 IsDeadCheck(isolate, "v8::HeapSnapshot::GetNode");
6155 return reinterpret_cast<const HeapGraphNode*>( 6155 return reinterpret_cast<const HeapGraphNode*>(
6156 ToInternal(this)->entries()->at(index)); 6156 ToInternal(this)->entries()->at(index));
6157 } 6157 }
6158 6158
6159 6159
6160 SnapshotObjectId HeapSnapshot::GetMaxSnapshotJSObjectId() const {
6161 return ToInternal(this)->max_snapshot_js_object_id();
mnaganov (inactive) 2012/03/26 15:55:37 Please add i::Isolate* isolate = i::Isolate::Curr
6162 }
6163
6164
6160 void HeapSnapshot::Serialize(OutputStream* stream, 6165 void HeapSnapshot::Serialize(OutputStream* stream,
6161 HeapSnapshot::SerializationFormat format) const { 6166 HeapSnapshot::SerializationFormat format) const {
6162 i::Isolate* isolate = i::Isolate::Current(); 6167 i::Isolate* isolate = i::Isolate::Current();
6163 IsDeadCheck(isolate, "v8::HeapSnapshot::Serialize"); 6168 IsDeadCheck(isolate, "v8::HeapSnapshot::Serialize");
6164 ApiCheck(format == kJSON, 6169 ApiCheck(format == kJSON,
6165 "v8::HeapSnapshot::Serialize", 6170 "v8::HeapSnapshot::Serialize",
6166 "Unknown serialization format"); 6171 "Unknown serialization format");
6167 ApiCheck(stream->GetOutputEncoding() == OutputStream::kAscii, 6172 ApiCheck(stream->GetOutputEncoding() == OutputStream::kAscii,
6168 "v8::HeapSnapshot::Serialize", 6173 "v8::HeapSnapshot::Serialize",
6169 "Unsupported output encoding"); 6174 "Unsupported output encoding");
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
6359 6364
6360 6365
6361 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6366 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6362 HandleScopeImplementer* scope_implementer = 6367 HandleScopeImplementer* scope_implementer =
6363 reinterpret_cast<HandleScopeImplementer*>(storage); 6368 reinterpret_cast<HandleScopeImplementer*>(storage);
6364 scope_implementer->IterateThis(v); 6369 scope_implementer->IterateThis(v);
6365 return storage + ArchiveSpacePerThread(); 6370 return storage + ArchiveSpacePerThread();
6366 } 6371 }
6367 6372
6368 } } // namespace v8::internal 6373 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8-profiler.h ('k') | src/profile-generator.h » ('j') | src/profile-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698