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

Side by Side Diff: src/compiler.h

Issue 1082183003: Revert of 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()));
375 aborted_due_to_dependency_change_ = true; 376 aborted_due_to_dependency_change_ = true;
376 } 377 }
377 378
378 bool HasAbortedDueToDependencyChange() const { 379 bool HasAbortedDueToDependencyChange() const {
380 DCHECK(!OptimizingCompilerThread::IsOptimizerThread(isolate()));
379 return aborted_due_to_dependency_change_; 381 return aborted_due_to_dependency_change_;
380 } 382 }
381 383
382 bool HasSameOsrEntry(Handle<JSFunction> function, BailoutId osr_ast_id) { 384 bool HasSameOsrEntry(Handle<JSFunction> function, BailoutId osr_ast_id) {
383 return osr_ast_id_ == osr_ast_id && function.is_identical_to(closure()); 385 return osr_ast_id_ == osr_ast_id && function.is_identical_to(closure());
384 } 386 }
385 387
386 int optimization_id() const { return optimization_id_; } 388 int optimization_id() const { return optimization_id_; }
387 389
388 int osr_expr_stack_height() { return osr_expr_stack_height_; } 390 int osr_expr_stack_height() { return osr_expr_stack_height_; }
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 Zone zone_; 692 Zone zone_;
691 size_t info_zone_start_allocation_size_; 693 size_t info_zone_start_allocation_size_;
692 base::ElapsedTimer timer_; 694 base::ElapsedTimer timer_;
693 695
694 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 696 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
695 }; 697 };
696 698
697 } } // namespace v8::internal 699 } } // namespace v8::internal
698 700
699 #endif // V8_COMPILER_H_ 701 #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