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

Side by Side Diff: src/compiler.cc

Issue 358873005: Remove script collected debug event. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
« no previous file with comments | « include/v8-debug.h ('k') | src/d8.js » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 } 447 }
448 448
449 return AbortOptimization(); 449 return AbortOptimization();
450 } 450 }
451 451
452 452
453 OptimizedCompileJob::Status OptimizedCompileJob::GenerateCode() { 453 OptimizedCompileJob::Status OptimizedCompileJob::GenerateCode() {
454 ASSERT(last_status() == SUCCEEDED); 454 ASSERT(last_status() == SUCCEEDED);
455 ASSERT(!info()->HasAbortedDueToDependencyChange()); 455 ASSERT(!info()->HasAbortedDueToDependencyChange());
456 DisallowCodeDependencyChange no_dependency_change; 456 DisallowCodeDependencyChange no_dependency_change;
457 DisallowJavascriptExecution no_js(isolate());
457 { // Scope for timer. 458 { // Scope for timer.
458 Timer timer(this, &time_taken_to_codegen_); 459 Timer timer(this, &time_taken_to_codegen_);
459 ASSERT(chunk_ != NULL); 460 ASSERT(chunk_ != NULL);
460 ASSERT(graph_ != NULL); 461 ASSERT(graph_ != NULL);
461 // Deferred handles reference objects that were accessible during 462 // Deferred handles reference objects that were accessible during
462 // graph creation. To make sure that we don't encounter inconsistencies 463 // graph creation. To make sure that we don't encounter inconsistencies
463 // between graph creation and code generation, we disallow accessing 464 // between graph creation and code generation, we disallow accessing
464 // objects through deferred handles during the latter, with exceptions. 465 // objects through deferred handles during the latter, with exceptions.
465 DisallowDeferredHandleDereference no_deferred_handle_deref; 466 DisallowDeferredHandleDereference no_deferred_handle_deref;
466 Handle<Code> optimized_code = chunk_->Codegen(); 467 Handle<Code> optimized_code = chunk_->Codegen();
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 AllowHandleDereference allow_deref; 1312 AllowHandleDereference allow_deref;
1312 bool tracing_on = info()->IsStub() 1313 bool tracing_on = info()->IsStub()
1313 ? FLAG_trace_hydrogen_stubs 1314 ? FLAG_trace_hydrogen_stubs
1314 : (FLAG_trace_hydrogen && 1315 : (FLAG_trace_hydrogen &&
1315 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1316 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1316 return (tracing_on && 1317 return (tracing_on &&
1317 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1318 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1318 } 1319 }
1319 1320
1320 } } // namespace v8::internal 1321 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8-debug.h ('k') | src/d8.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698