OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 | 662 |
663 enum ReturnHandlingFlag { | 663 enum ReturnHandlingFlag { |
664 NORMAL_RETURN, | 664 NORMAL_RETURN, |
665 DROP_EXTRA_ON_RETURN, | 665 DROP_EXTRA_ON_RETURN, |
666 CONSTRUCT_CALL_RETURN | 666 CONSTRUCT_CALL_RETURN |
667 }; | 667 }; |
668 | 668 |
669 | 669 |
670 class FunctionState { | 670 class FunctionState { |
671 public: | 671 public: |
672 | |
673 FunctionState(HGraphBuilder* owner, | 672 FunctionState(HGraphBuilder* owner, |
674 CompilationInfo* info, | 673 CompilationInfo* info, |
675 TypeFeedbackOracle* oracle, | 674 TypeFeedbackOracle* oracle, |
676 ReturnHandlingFlag return_handling); | 675 ReturnHandlingFlag return_handling); |
677 ~FunctionState(); | 676 ~FunctionState(); |
678 | 677 |
679 CompilationInfo* compilation_info() { return compilation_info_; } | 678 CompilationInfo* compilation_info() { return compilation_info_; } |
680 TypeFeedbackOracle* oracle() { return oracle_; } | 679 TypeFeedbackOracle* oracle() { return oracle_; } |
681 AstContext* call_context() { return call_context_; } | 680 AstContext* call_context() { return call_context_; } |
682 bool drop_extra() { return return_handling_ == DROP_EXTRA_ON_RETURN; } | 681 bool drop_extra() { return return_handling_ == DROP_EXTRA_ON_RETURN; } |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 const char* filename_; | 1341 const char* filename_; |
1343 HeapStringAllocator string_allocator_; | 1342 HeapStringAllocator string_allocator_; |
1344 StringStream trace_; | 1343 StringStream trace_; |
1345 int indent_; | 1344 int indent_; |
1346 }; | 1345 }; |
1347 | 1346 |
1348 | 1347 |
1349 } } // namespace v8::internal | 1348 } } // namespace v8::internal |
1350 | 1349 |
1351 #endif // V8_HYDROGEN_H_ | 1350 #endif // V8_HYDROGEN_H_ |
OLD | NEW |