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

Side by Side Diff: src/api.cc

Issue 10706002: Implements a new API to set a function entry hook for profiling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Sketch ARM code stub. Created 8 years, 5 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 4214 matching lines...) Expand 10 before | Expand all | Expand 10 after
4225 i::V8::SetEntropySource(source); 4225 i::V8::SetEntropySource(source);
4226 } 4226 }
4227 4227
4228 4228
4229 void v8::V8::SetReturnAddressLocationResolver( 4229 void v8::V8::SetReturnAddressLocationResolver(
4230 ReturnAddressLocationResolver return_address_resolver) { 4230 ReturnAddressLocationResolver return_address_resolver) {
4231 i::V8::SetReturnAddressLocationResolver(return_address_resolver); 4231 i::V8::SetReturnAddressLocationResolver(return_address_resolver);
4232 } 4232 }
4233 4233
4234 4234
4235 bool v8::V8::SetFunctionEntryHook(FunctionEntryHook entry_hook) {
4236 return i::V8::SetFunctionEntryHook(entry_hook);
4237 }
4238
4239
4235 bool v8::V8::Dispose() { 4240 bool v8::V8::Dispose() {
4236 i::Isolate* isolate = i::Isolate::Current(); 4241 i::Isolate* isolate = i::Isolate::Current();
4237 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(), 4242 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(),
4238 "v8::V8::Dispose()", 4243 "v8::V8::Dispose()",
4239 "Use v8::Isolate::Dispose() for a non-default isolate.")) { 4244 "Use v8::Isolate::Dispose() for a non-default isolate.")) {
4240 return false; 4245 return false;
4241 } 4246 }
4242 i::V8::TearDown(); 4247 i::V8::TearDown();
4243 return true; 4248 return true;
4244 } 4249 }
(...skipping 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after
6412 6417
6413 6418
6414 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6419 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6415 HandleScopeImplementer* scope_implementer = 6420 HandleScopeImplementer* scope_implementer =
6416 reinterpret_cast<HandleScopeImplementer*>(storage); 6421 reinterpret_cast<HandleScopeImplementer*>(storage);
6417 scope_implementer->IterateThis(v); 6422 scope_implementer->IterateThis(v);
6418 return storage + ArchiveSpacePerThread(); 6423 return storage + ArchiveSpacePerThread();
6419 } 6424 }
6420 6425
6421 } } // namespace v8::internal 6426 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/arm/assembler-arm.cc » ('j') | src/arm/assembler-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698