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