| 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/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 CompilationDependencies* dependencies() { return &dependencies_; } | 389 CompilationDependencies* dependencies() { return &dependencies_; } |
| 390 | 390 |
| 391 int optimization_id() const { return optimization_id_; } | 391 int optimization_id() const { return optimization_id_; } |
| 392 | 392 |
| 393 int osr_expr_stack_height() { return osr_expr_stack_height_; } | 393 int osr_expr_stack_height() { return osr_expr_stack_height_; } |
| 394 void set_osr_expr_stack_height(int height) { | 394 void set_osr_expr_stack_height(int height) { |
| 395 DCHECK(height >= 0); | 395 DCHECK(height >= 0); |
| 396 osr_expr_stack_height_ = height; | 396 osr_expr_stack_height_ = height; |
| 397 } | 397 } |
| 398 | 398 |
| 399 #if DEBUG | |
| 400 void PrintAstForTesting(); | |
| 401 #endif | |
| 402 | |
| 403 bool has_simple_parameters(); | 399 bool has_simple_parameters(); |
| 404 | 400 |
| 405 struct InlinedFunctionHolder { | 401 struct InlinedFunctionHolder { |
| 406 Handle<SharedFunctionInfo> shared_info; | 402 Handle<SharedFunctionInfo> shared_info; |
| 407 | 403 |
| 408 // Root that holds the unoptimized code of the inlined function alive | 404 // Root that holds the unoptimized code of the inlined function alive |
| 409 // (and out of reach of code flushing) until we finish compilation. | 405 // (and out of reach of code flushing) until we finish compilation. |
| 410 // Do not remove. | 406 // Do not remove. |
| 411 Handle<Code> inlined_code_object_root; | 407 Handle<Code> inlined_code_object_root; |
| 412 | 408 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 MUST_USE_RESULT Status SetLastStatus(Status status) { | 589 MUST_USE_RESULT Status SetLastStatus(Status status) { |
| 594 last_status_ = status; | 590 last_status_ = status; |
| 595 return last_status_; | 591 return last_status_; |
| 596 } | 592 } |
| 597 }; | 593 }; |
| 598 | 594 |
| 599 } // namespace internal | 595 } // namespace internal |
| 600 } // namespace v8 | 596 } // namespace v8 |
| 601 | 597 |
| 602 #endif // V8_COMPILER_H_ | 598 #endif // V8_COMPILER_H_ |
| OLD | NEW |