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

Side by Side Diff: src/compiler.h

Issue 1059853004: Reland "Remove support for thread-based recompilation" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « BUILD.gn ('k') | 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 // 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 #ifndef V8_COMPILER_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 365
366 Handle<Foreign> object_wrapper() { 366 Handle<Foreign> object_wrapper() {
367 if (object_wrapper_.is_null()) { 367 if (object_wrapper_.is_null()) {
368 object_wrapper_ = 368 object_wrapper_ =
369 isolate()->factory()->NewForeign(reinterpret_cast<Address>(this)); 369 isolate()->factory()->NewForeign(reinterpret_cast<Address>(this));
370 } 370 }
371 return object_wrapper_; 371 return object_wrapper_;
372 } 372 }
373 373
374 void AbortDueToDependencyChange() { 374 void AbortDueToDependencyChange() {
375 DCHECK(!OptimizingCompilerThread::IsOptimizerThread(isolate()));
376 aborted_due_to_dependency_change_ = true; 375 aborted_due_to_dependency_change_ = true;
377 } 376 }
378 377
379 bool HasAbortedDueToDependencyChange() const { 378 bool HasAbortedDueToDependencyChange() const {
380 DCHECK(!OptimizingCompilerThread::IsOptimizerThread(isolate()));
381 return aborted_due_to_dependency_change_; 379 return aborted_due_to_dependency_change_;
382 } 380 }
383 381
384 bool HasSameOsrEntry(Handle<JSFunction> function, BailoutId osr_ast_id) { 382 bool HasSameOsrEntry(Handle<JSFunction> function, BailoutId osr_ast_id) {
385 return osr_ast_id_ == osr_ast_id && function.is_identical_to(closure()); 383 return osr_ast_id_ == osr_ast_id && function.is_identical_to(closure());
386 } 384 }
387 385
388 int optimization_id() const { return optimization_id_; } 386 int optimization_id() const { return optimization_id_; }
389 387
390 int osr_expr_stack_height() { return osr_expr_stack_height_; } 388 int osr_expr_stack_height() { return osr_expr_stack_height_; }
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 Zone zone_; 690 Zone zone_;
693 size_t info_zone_start_allocation_size_; 691 size_t info_zone_start_allocation_size_;
694 base::ElapsedTimer timer_; 692 base::ElapsedTimer timer_;
695 693
696 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 694 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
697 }; 695 };
698 696
699 } } // namespace v8::internal 697 } } // namespace v8::internal
700 698
701 #endif // V8_COMPILER_H_ 699 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698