| 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 842   int loop_depth_; | 838   int loop_depth_; | 
| 843   ZoneList<Handle<Object> >* globals_; | 839   ZoneList<Handle<Object> >* globals_; | 
| 844   Handle<FixedArray> modules_; | 840   Handle<FixedArray> modules_; | 
| 845   int module_index_; | 841   int module_index_; | 
| 846   const ExpressionContext* context_; | 842   const ExpressionContext* context_; | 
| 847   ZoneList<BailoutEntry> bailout_entries_; | 843   ZoneList<BailoutEntry> bailout_entries_; | 
| 848   GrowableBitVector prepared_bailout_ids_; | 844   GrowableBitVector prepared_bailout_ids_; | 
| 849   ZoneList<BackEdgeEntry> back_edges_; | 845   ZoneList<BackEdgeEntry> back_edges_; | 
| 850   int ic_total_count_; | 846   int ic_total_count_; | 
| 851   Handle<FixedArray> handler_table_; | 847   Handle<FixedArray> handler_table_; | 
| 852   Handle<FixedArray> feedback_vector_; |  | 
| 853   Handle<Cell> profiling_counter_; | 848   Handle<Cell> profiling_counter_; | 
| 854   bool generate_debug_code_; | 849   bool generate_debug_code_; | 
| 855 | 850 | 
| 856   friend class NestedStatement; | 851   friend class NestedStatement; | 
| 857 | 852 | 
| 858   DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 853   DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 
| 859   DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 854   DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 
| 860 }; | 855 }; | 
| 861 | 856 | 
| 862 | 857 | 
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 965 | 960 | 
| 966   Address start_; | 961   Address start_; | 
| 967   Address instruction_start_; | 962   Address instruction_start_; | 
| 968   uint32_t length_; | 963   uint32_t length_; | 
| 969 }; | 964 }; | 
| 970 | 965 | 
| 971 | 966 | 
| 972 } }  // namespace v8::internal | 967 } }  // namespace v8::internal | 
| 973 | 968 | 
| 974 #endif  // V8_FULL_CODEGEN_H_ | 969 #endif  // V8_FULL_CODEGEN_H_ | 
| OLD | NEW | 
|---|