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 <memory> |
| 9 |
8 #include "src/allocation.h" | 10 #include "src/allocation.h" |
9 #include "src/ast/ast.h" | 11 #include "src/ast/ast.h" |
10 #include "src/bailout-reason.h" | 12 #include "src/bailout-reason.h" |
11 #include "src/compilation-dependencies.h" | 13 #include "src/compilation-dependencies.h" |
12 #include "src/source-position-table.h" | 14 #include "src/source-position-table.h" |
13 #include "src/source-position.h" | 15 #include "src/source-position.h" |
14 #include "src/zone.h" | 16 #include "src/zone.h" |
15 | 17 |
16 namespace v8 { | 18 namespace v8 { |
17 namespace internal { | 19 namespace internal { |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 | 422 |
421 typedef std::vector<InlinedFunctionHolder> InlinedFunctionList; | 423 typedef std::vector<InlinedFunctionHolder> InlinedFunctionList; |
422 InlinedFunctionList const& inlined_functions() const { | 424 InlinedFunctionList const& inlined_functions() const { |
423 return inlined_functions_; | 425 return inlined_functions_; |
424 } | 426 } |
425 | 427 |
426 void AddInlinedFunction(Handle<SharedFunctionInfo> inlined_function) { | 428 void AddInlinedFunction(Handle<SharedFunctionInfo> inlined_function) { |
427 inlined_functions_.push_back(InlinedFunctionHolder(inlined_function)); | 429 inlined_functions_.push_back(InlinedFunctionHolder(inlined_function)); |
428 } | 430 } |
429 | 431 |
430 base::SmartArrayPointer<char> GetDebugName() const; | 432 std::unique_ptr<char[]> GetDebugName() const; |
431 | 433 |
432 Code::Kind output_code_kind() const { | 434 Code::Kind output_code_kind() const { |
433 return Code::ExtractKindFromFlags(code_flags_); | 435 return Code::ExtractKindFromFlags(code_flags_); |
434 } | 436 } |
435 | 437 |
436 StackFrame::Type GetOutputStackFrameType() const; | 438 StackFrame::Type GetOutputStackFrameType() const; |
437 | 439 |
438 int GetDeclareGlobalsFlags() const; | 440 int GetDeclareGlobalsFlags() const; |
439 | 441 |
440 SourcePositionTableBuilder::RecordingMode SourcePositionRecordingMode() const; | 442 SourcePositionTableBuilder::RecordingMode SourcePositionRecordingMode() const; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 MUST_USE_RESULT Status SetLastStatus(Status status) { | 579 MUST_USE_RESULT Status SetLastStatus(Status status) { |
578 last_status_ = status; | 580 last_status_ = status; |
579 return last_status_; | 581 return last_status_; |
580 } | 582 } |
581 }; | 583 }; |
582 | 584 |
583 } // namespace internal | 585 } // namespace internal |
584 } // namespace v8 | 586 } // namespace v8 |
585 | 587 |
586 #endif // V8_COMPILER_H_ | 588 #endif // V8_COMPILER_H_ |
OLD | NEW |