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

Side by Side Diff: src/api.cc

Issue 10105026: Version 3.10.3 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: 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
« no previous file with comments | « samples/samples.gyp ('k') | src/arm/code-stubs-arm.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 5980 matching lines...) Expand 10 before | Expand all | Expand 10 after
5991 edge->index()))); 5991 edge->index())));
5992 default: UNREACHABLE(); 5992 default: UNREACHABLE();
5993 } 5993 }
5994 return v8::Undefined(); 5994 return v8::Undefined();
5995 } 5995 }
5996 5996
5997 5997
5998 const HeapGraphNode* HeapGraphEdge::GetFromNode() const { 5998 const HeapGraphNode* HeapGraphEdge::GetFromNode() const {
5999 i::Isolate* isolate = i::Isolate::Current(); 5999 i::Isolate* isolate = i::Isolate::Current();
6000 IsDeadCheck(isolate, "v8::HeapGraphEdge::GetFromNode"); 6000 IsDeadCheck(isolate, "v8::HeapGraphEdge::GetFromNode");
6001 const i::HeapEntry* from = ToInternal(this)->From(); 6001 const i::HeapEntry* from = ToInternal(this)->from();
6002 return reinterpret_cast<const HeapGraphNode*>(from); 6002 return reinterpret_cast<const HeapGraphNode*>(from);
6003 } 6003 }
6004 6004
6005 6005
6006 const HeapGraphNode* HeapGraphEdge::GetToNode() const { 6006 const HeapGraphNode* HeapGraphEdge::GetToNode() const {
6007 i::Isolate* isolate = i::Isolate::Current(); 6007 i::Isolate* isolate = i::Isolate::Current();
6008 IsDeadCheck(isolate, "v8::HeapGraphEdge::GetToNode"); 6008 IsDeadCheck(isolate, "v8::HeapGraphEdge::GetToNode");
6009 const i::HeapEntry* to = ToInternal(this)->to(); 6009 const i::HeapEntry* to = ToInternal(this)->to();
6010 return reinterpret_cast<const HeapGraphNode*>(to); 6010 return reinterpret_cast<const HeapGraphNode*>(to);
6011 } 6011 }
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
6211 6211
6212 6212
6213 const HeapSnapshot* HeapProfiler::FindSnapshot(unsigned uid) { 6213 const HeapSnapshot* HeapProfiler::FindSnapshot(unsigned uid) {
6214 i::Isolate* isolate = i::Isolate::Current(); 6214 i::Isolate* isolate = i::Isolate::Current();
6215 IsDeadCheck(isolate, "v8::HeapProfiler::FindSnapshot"); 6215 IsDeadCheck(isolate, "v8::HeapProfiler::FindSnapshot");
6216 return reinterpret_cast<const HeapSnapshot*>( 6216 return reinterpret_cast<const HeapSnapshot*>(
6217 i::HeapProfiler::FindSnapshot(uid)); 6217 i::HeapProfiler::FindSnapshot(uid));
6218 } 6218 }
6219 6219
6220 6220
6221 SnapshotObjectId HeapProfiler::GetSnapshotObjectId(Handle<Value> value) {
6222 i::Isolate* isolate = i::Isolate::Current();
6223 IsDeadCheck(isolate, "v8::HeapProfiler::GetSnapshotObjectId");
6224 i::Handle<i::Object> obj = Utils::OpenHandle(*value);
6225 return i::HeapProfiler::GetSnapshotObjectId(obj);
6226 }
6227
6228
6221 const HeapSnapshot* HeapProfiler::TakeSnapshot(Handle<String> title, 6229 const HeapSnapshot* HeapProfiler::TakeSnapshot(Handle<String> title,
6222 HeapSnapshot::Type type, 6230 HeapSnapshot::Type type,
6223 ActivityControl* control) { 6231 ActivityControl* control) {
6224 i::Isolate* isolate = i::Isolate::Current(); 6232 i::Isolate* isolate = i::Isolate::Current();
6225 IsDeadCheck(isolate, "v8::HeapProfiler::TakeSnapshot"); 6233 IsDeadCheck(isolate, "v8::HeapProfiler::TakeSnapshot");
6226 i::HeapSnapshot::Type internal_type = i::HeapSnapshot::kFull; 6234 i::HeapSnapshot::Type internal_type = i::HeapSnapshot::kFull;
6227 switch (type) { 6235 switch (type) {
6228 case HeapSnapshot::kFull: 6236 case HeapSnapshot::kFull:
6229 internal_type = i::HeapSnapshot::kFull; 6237 internal_type = i::HeapSnapshot::kFull;
6230 break; 6238 break;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
6400 6408
6401 6409
6402 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6410 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6403 HandleScopeImplementer* scope_implementer = 6411 HandleScopeImplementer* scope_implementer =
6404 reinterpret_cast<HandleScopeImplementer*>(storage); 6412 reinterpret_cast<HandleScopeImplementer*>(storage);
6405 scope_implementer->IterateThis(v); 6413 scope_implementer->IterateThis(v);
6406 return storage + ArchiveSpacePerThread(); 6414 return storage + ArchiveSpacePerThread();
6407 } 6415 }
6408 6416
6409 } } // namespace v8::internal 6417 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « samples/samples.gyp ('k') | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698