| 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(HydrogenCodeStub* stub, | 432 CompilationInfo(HydrogenCodeStub* stub, |
| 431 Isolate* isolate, | 433 Isolate* isolate, |
| 432 Zone* zone); | 434 Zone* zone); |
| 433 CompilationInfo(ScriptCompiler::ExternalSourceStream* source_stream, | 435 CompilationInfo(ScriptCompiler::ExternalSourceStream* source_stream, |
| 434 ScriptCompiler::StreamedSource::Encoding encoding, | 436 ScriptCompiler::StreamedSource::Encoding encoding, |
| 435 Isolate* isolate, Zone* zone); | 437 Isolate* isolate, Zone* zone); |
| 436 | 438 |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 Zone zone_; | 779 Zone zone_; |
| 778 unsigned info_zone_start_allocation_size_; | 780 unsigned info_zone_start_allocation_size_; |
| 779 base::ElapsedTimer timer_; | 781 base::ElapsedTimer timer_; |
| 780 | 782 |
| 781 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 783 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 782 }; | 784 }; |
| 783 | 785 |
| 784 } } // namespace v8::internal | 786 } } // namespace v8::internal |
| 785 | 787 |
| 786 #endif // V8_COMPILER_H_ | 788 #endif // V8_COMPILER_H_ |
| OLD | NEW |