| 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 DCHECK(height >= 0); | 393 DCHECK(height >= 0); |
| 394 osr_expr_stack_height_ = height; | 394 osr_expr_stack_height_ = height; |
| 395 } | 395 } |
| 396 JavaScriptFrame* osr_frame() const { return osr_frame_; } | 396 JavaScriptFrame* osr_frame() const { return osr_frame_; } |
| 397 void set_osr_frame(JavaScriptFrame* osr_frame) { osr_frame_ = osr_frame; } | 397 void set_osr_frame(JavaScriptFrame* osr_frame) { osr_frame_ = osr_frame; } |
| 398 | 398 |
| 399 #if DEBUG | 399 #if DEBUG |
| 400 void PrintAstForTesting(); | 400 void PrintAstForTesting(); |
| 401 #endif | 401 #endif |
| 402 | 402 |
| 403 bool is_simple_parameter_list(); | 403 bool has_simple_parameters(); |
| 404 | 404 |
| 405 Handle<Code> GenerateCodeStub(); | 405 Handle<Code> GenerateCodeStub(); |
| 406 | 406 |
| 407 typedef std::vector<Handle<SharedFunctionInfo>> InlinedFunctionList; | 407 typedef std::vector<Handle<SharedFunctionInfo>> InlinedFunctionList; |
| 408 InlinedFunctionList const& inlined_functions() const { | 408 InlinedFunctionList const& inlined_functions() const { |
| 409 return inlined_functions_; | 409 return inlined_functions_; |
| 410 } | 410 } |
| 411 void AddInlinedFunction(Handle<SharedFunctionInfo> inlined_function) { | 411 void AddInlinedFunction(Handle<SharedFunctionInfo> inlined_function) { |
| 412 inlined_functions_.push_back(inlined_function); | 412 inlined_functions_.push_back(inlined_function); |
| 413 } | 413 } |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 Zone zone_; | 699 Zone zone_; |
| 700 size_t info_zone_start_allocation_size_; | 700 size_t info_zone_start_allocation_size_; |
| 701 base::ElapsedTimer timer_; | 701 base::ElapsedTimer timer_; |
| 702 | 702 |
| 703 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 703 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 704 }; | 704 }; |
| 705 | 705 |
| 706 } } // namespace v8::internal | 706 } } // namespace v8::internal |
| 707 | 707 |
| 708 #endif // V8_COMPILER_H_ | 708 #endif // V8_COMPILER_H_ |
| OLD | NEW |