| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 Expression* sub_expr, | 430 Expression* sub_expr, |
| 431 NilValue nil); | 431 NilValue nil); |
| 432 | 432 |
| 433 // Bailout support. | 433 // Bailout support. |
| 434 void PrepareForBailout(Expression* node, State state); | 434 void PrepareForBailout(Expression* node, State state); |
| 435 void PrepareForBailoutForId(BailoutId id, State state); | 435 void PrepareForBailoutForId(BailoutId id, State state); |
| 436 | 436 |
| 437 // Feedback slot support. The feedback vector will be cleared during gc and | 437 // Feedback slot support. The feedback vector will be cleared during gc and |
| 438 // collected by the type-feedback oracle. | 438 // collected by the type-feedback oracle. |
| 439 Handle<FixedArray> FeedbackVector() { | 439 Handle<FixedArray> FeedbackVector() { |
| 440 return feedback_vector_; | 440 return info_->feedback_vector(); |
| 441 } | 441 } |
| 442 void StoreFeedbackVectorSlot(int slot, Handle<Object> object) { | |
| 443 feedback_vector_->set(slot, *object); | |
| 444 } | |
| 445 void InitializeFeedbackVector(); | |
| 446 | 442 |
| 447 // Record a call's return site offset, used to rebuild the frame if the | 443 // Record a call's return site offset, used to rebuild the frame if the |
| 448 // called function was inlined at the site. | 444 // called function was inlined at the site. |
| 449 void RecordJSReturnSite(Call* call); | 445 void RecordJSReturnSite(Call* call); |
| 450 | 446 |
| 451 // Prepare for bailout before a test (or compare) and branch. If | 447 // Prepare for bailout before a test (or compare) and branch. If |
| 452 // should_normalize, then the following comparison will not handle the | 448 // should_normalize, then the following comparison will not handle the |
| 453 // canonical JS true value so we will insert a (dead) test against true at | 449 // canonical JS true value so we will insert a (dead) test against true at |
| 454 // the actual bailout target from the optimized code. If not | 450 // the actual bailout target from the optimized code. If not |
| 455 // should_normalize, the true and false labels are ignored. | 451 // should_normalize, the true and false labels are ignored. |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 int loop_depth_; | 837 int loop_depth_; |
| 842 ZoneList<Handle<Object> >* globals_; | 838 ZoneList<Handle<Object> >* globals_; |
| 843 Handle<FixedArray> modules_; | 839 Handle<FixedArray> modules_; |
| 844 int module_index_; | 840 int module_index_; |
| 845 const ExpressionContext* context_; | 841 const ExpressionContext* context_; |
| 846 ZoneList<BailoutEntry> bailout_entries_; | 842 ZoneList<BailoutEntry> bailout_entries_; |
| 847 GrowableBitVector prepared_bailout_ids_; | 843 GrowableBitVector prepared_bailout_ids_; |
| 848 ZoneList<BackEdgeEntry> back_edges_; | 844 ZoneList<BackEdgeEntry> back_edges_; |
| 849 int ic_total_count_; | 845 int ic_total_count_; |
| 850 Handle<FixedArray> handler_table_; | 846 Handle<FixedArray> handler_table_; |
| 851 Handle<FixedArray> feedback_vector_; | |
| 852 Handle<Cell> profiling_counter_; | 847 Handle<Cell> profiling_counter_; |
| 853 bool generate_debug_code_; | 848 bool generate_debug_code_; |
| 854 | 849 |
| 855 friend class NestedStatement; | 850 friend class NestedStatement; |
| 856 | 851 |
| 857 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 852 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
| 858 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 853 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
| 859 }; | 854 }; |
| 860 | 855 |
| 861 | 856 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 | 959 |
| 965 Address start_; | 960 Address start_; |
| 966 Address instruction_start_; | 961 Address instruction_start_; |
| 967 uint32_t length_; | 962 uint32_t length_; |
| 968 }; | 963 }; |
| 969 | 964 |
| 970 | 965 |
| 971 } } // namespace v8::internal | 966 } } // namespace v8::internal |
| 972 | 967 |
| 973 #endif // V8_FULL_CODEGEN_H_ | 968 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |