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

Side by Side Diff: src/api.cc

Issue 11412125: Add parallel recompilation time to histogram and plot execution pause times. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: make new counters non-histograms Created 8 years 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 | « no previous file | src/compiler.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 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1674 ScriptOrigin origin(file_name); 1674 ScriptOrigin origin(file_name);
1675 return Compile(source, &origin, 0, script_data); 1675 return Compile(source, &origin, 0, script_data);
1676 } 1676 }
1677 1677
1678 1678
1679 Local<Value> Script::Run() { 1679 Local<Value> Script::Run() {
1680 i::Isolate* isolate = i::Isolate::Current(); 1680 i::Isolate* isolate = i::Isolate::Current();
1681 ON_BAILOUT(isolate, "v8::Script::Run()", return Local<Value>()); 1681 ON_BAILOUT(isolate, "v8::Script::Run()", return Local<Value>());
1682 LOG_API(isolate, "Script::Run"); 1682 LOG_API(isolate, "Script::Run");
1683 ENTER_V8(isolate); 1683 ENTER_V8(isolate);
1684 i::Logger::TimerEventScope timer_scope(
1685 isolate->logger(), i::Logger::TimerEventScope::v8_execute);
1684 i::Object* raw_result = NULL; 1686 i::Object* raw_result = NULL;
1685 { 1687 {
1686 i::HandleScope scope(isolate); 1688 i::HandleScope scope(isolate);
1687 i::Handle<i::Object> obj = Utils::OpenHandle(this); 1689 i::Handle<i::Object> obj = Utils::OpenHandle(this);
1688 i::Handle<i::JSFunction> fun; 1690 i::Handle<i::JSFunction> fun;
1689 if (obj->IsSharedFunctionInfo()) { 1691 if (obj->IsSharedFunctionInfo()) {
1690 i::Handle<i::SharedFunctionInfo> 1692 i::Handle<i::SharedFunctionInfo>
1691 function_info(i::SharedFunctionInfo::cast(*obj), isolate); 1693 function_info(i::SharedFunctionInfo::cast(*obj), isolate);
1692 fun = isolate->factory()->NewFunctionFromSharedFunctionInfo( 1694 fun = isolate->factory()->NewFunctionFromSharedFunctionInfo(
1693 function_info, isolate->global_context()); 1695 function_info, isolate->global_context());
(...skipping 4968 matching lines...) Expand 10 before | Expand all | Expand 10 after
6662 6664
6663 v->VisitPointers(blocks_.first(), first_block_limit_); 6665 v->VisitPointers(blocks_.first(), first_block_limit_);
6664 6666
6665 for (int i = 1; i < blocks_.length(); i++) { 6667 for (int i = 1; i < blocks_.length(); i++) {
6666 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); 6668 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]);
6667 } 6669 }
6668 } 6670 }
6669 6671
6670 6672
6671 } } // namespace v8::internal 6673 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698