| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |