| 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 int osr_expr_stack_height() { return osr_expr_stack_height_; } | 417 int osr_expr_stack_height() { return osr_expr_stack_height_; } |
| 418 void set_osr_expr_stack_height(int height) { | 418 void set_osr_expr_stack_height(int height) { |
| 419 DCHECK(height >= 0); | 419 DCHECK(height >= 0); |
| 420 osr_expr_stack_height_ = height; | 420 osr_expr_stack_height_ = height; |
| 421 } | 421 } |
| 422 | 422 |
| 423 #if DEBUG | 423 #if DEBUG |
| 424 void PrintAstForTesting(); | 424 void PrintAstForTesting(); |
| 425 #endif | 425 #endif |
| 426 | 426 |
| 427 bool is_simple_parameter_list(); |
| 428 |
| 427 protected: | 429 protected: |
| 428 CompilationInfo(Handle<SharedFunctionInfo> shared_info, | 430 CompilationInfo(Handle<SharedFunctionInfo> shared_info, |
| 429 Zone* zone); | 431 Zone* zone); |
| 430 CompilationInfo(ScriptCompiler::ExternalSourceStream* source_stream, | 432 CompilationInfo(ScriptCompiler::ExternalSourceStream* source_stream, |
| 431 ScriptCompiler::StreamedSource::Encoding encoding, | 433 ScriptCompiler::StreamedSource::Encoding encoding, |
| 432 Isolate* isolate, Zone* zone); | 434 Isolate* isolate, Zone* zone); |
| 433 | 435 |
| 434 | 436 |
| 435 private: | 437 private: |
| 436 Isolate* isolate_; | 438 Isolate* isolate_; |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 Zone zone_; | 776 Zone zone_; |
| 775 size_t info_zone_start_allocation_size_; | 777 size_t info_zone_start_allocation_size_; |
| 776 base::ElapsedTimer timer_; | 778 base::ElapsedTimer timer_; |
| 777 | 779 |
| 778 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 780 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 779 }; | 781 }; |
| 780 | 782 |
| 781 } } // namespace v8::internal | 783 } } // namespace v8::internal |
| 782 | 784 |
| 783 #endif // V8_COMPILER_H_ | 785 #endif // V8_COMPILER_H_ |
| OLD | NEW |