Revision: 9191
Author: [email protected]
Date: Thu Sep 8 02:49:52 2011
Log: Fixing shared library build of d8.
Review URL: http://codereview.chromium.org/7851013
http://code.google.com/p/v8/source/detail?r=9191
Modified:
/branches/bleeding_edge/src/api.cc
/branches/bleeding_edge/src/d8.cc
=======================================
--- /branches/bleeding_edge/src/api.cc Tue Aug 23 04:11:12 2011
+++ /branches/bleeding_edge/src/api.cc Thu Sep 8 02:49:52 2011
@@ -4979,12 +4979,18 @@
void V8::PauseProfiler() {
+ ApiCheck(i::FLAG_prof,
+ "V8::ResumeProfiler",
+ "Profiling has to be enabled with --prof");
i::Isolate* isolate = i::Isolate::Current();
isolate->logger()->PauseProfiler();
}
void V8::ResumeProfiler() {
+ ApiCheck(i::FLAG_prof,
+ "V8::ResumeProfiler",
+ "Profiling has to be enabled with --prof");
i::Isolate* isolate = i::Isolate::Current();
isolate->logger()->ResumeProfiler();
}
=======================================
--- /branches/bleeding_edge/src/d8.cc Thu Sep 8 01:54:28 2011
+++ /branches/bleeding_edge/src/d8.cc Thu Sep 8 02:49:52 2011
@@ -668,12 +668,10 @@
global_template->Set(String::New("load"), FunctionTemplate::New(Load));
global_template->Set(String::New("quit"), FunctionTemplate::New(Quit));
global_template->Set(String::New("version"),
FunctionTemplate::New(Version));
- if (i::FLAG_prof) {
- global_template->Set(String::New("enableProfiler"),
- FunctionTemplate::New(EnableProfiler));
- global_template->Set(String::New("disableProfiler"),
- FunctionTemplate::New(DisableProfiler));
- }
+ global_template->Set(String::New("enableProfiler"),
+ FunctionTemplate::New(EnableProfiler));
+ global_template->Set(String::New("disableProfiler"),
+ FunctionTemplate::New(DisableProfiler));
// Bind the handlers for external arrays.
global_template->Set(String::New("Int8Array"),
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev