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

Side by Side Diff: src/api.cc

Issue 9401019: Support for return-address rewriting profilers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Supply return address resolution function through an API. Created 8 years, 10 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 | « include/v8.h ('k') | src/frames.h » ('j') | src/frames.h » ('J')
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 4006 matching lines...) Expand 10 before | Expand all | Expand 10 after
4017 if (isolate != NULL && isolate->IsInitialized()) { 4017 if (isolate != NULL && isolate->IsInitialized()) {
4018 return true; 4018 return true;
4019 } 4019 }
4020 return InitializeHelper(); 4020 return InitializeHelper();
4021 } 4021 }
4022 4022
4023 4023
4024 void v8::V8::SetEntropySource(EntropySource source) { 4024 void v8::V8::SetEntropySource(EntropySource source) {
4025 i::V8::SetEntropySource(source); 4025 i::V8::SetEntropySource(source);
4026 } 4026 }
4027 4027
Vyacheslav Egorov (Chromium) 2012/02/24 10:34:02 add empty line
Sigurður Ásgeirsson 2012/02/24 14:46:04 Done.
4028 void v8::V8::SetReturnAddressLocationResolver(
4029 ReturnAddressLocationResolver return_address_resolver) {
4030 i::V8::SetReturnAddressLocationResolver(return_address_resolver);
4031 }
4028 4032
Vyacheslav Egorov (Chromium) 2012/02/24 10:34:02 add empty line
Sigurður Ásgeirsson 2012/02/24 14:46:04 Done.
4029 bool v8::V8::Dispose() { 4033 bool v8::V8::Dispose() {
4030 i::Isolate* isolate = i::Isolate::Current(); 4034 i::Isolate* isolate = i::Isolate::Current();
4031 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(), 4035 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(),
4032 "v8::V8::Dispose()", 4036 "v8::V8::Dispose()",
4033 "Use v8::Isolate::Dispose() for a non-default isolate.")) { 4037 "Use v8::Isolate::Dispose() for a non-default isolate.")) {
4034 return false; 4038 return false;
4035 } 4039 }
4036 i::V8::TearDown(); 4040 i::V8::TearDown();
4037 return true; 4041 return true;
4038 } 4042 }
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after
6188 6192
6189 6193
6190 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6194 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6191 HandleScopeImplementer* scope_implementer = 6195 HandleScopeImplementer* scope_implementer =
6192 reinterpret_cast<HandleScopeImplementer*>(storage); 6196 reinterpret_cast<HandleScopeImplementer*>(storage);
6193 scope_implementer->IterateThis(v); 6197 scope_implementer->IterateThis(v);
6194 return storage + ArchiveSpacePerThread(); 6198 return storage + ArchiveSpacePerThread();
6195 } 6199 }
6196 6200
6197 } } // namespace v8::internal 6201 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/frames.h » ('j') | src/frames.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698