Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/deoptimizer.h

Issue 11566011: Use MemoryChunk-based allocation for deoptimization entry code (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/deoptimizer.cc » ('j') | src/deoptimizer.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void Iterate(ObjectVisitor* v); 107 void Iterate(ObjectVisitor* v);
108 #endif 108 #endif
109 109
110 Code* FindDeoptimizingCode(Address addr); 110 Code* FindDeoptimizingCode(Address addr);
111 void RemoveDeoptimizingCode(Code* code); 111 void RemoveDeoptimizingCode(Code* code);
112 112
113 private: 113 private:
114 int eager_deoptimization_entry_code_entries_; 114 int eager_deoptimization_entry_code_entries_;
115 int lazy_deoptimization_entry_code_entries_; 115 int lazy_deoptimization_entry_code_entries_;
116 VirtualMemory* eager_deoptimization_entry_code_; 116 VirtualMemory* eager_deoptimization_entry_code_;
117 VirtualMemory* lazy_deoptimization_entry_code_; 117 VirtualMemory* lazy_deoptimization_entry_code_;
danno 2012/12/28 11:58:37 Rename this and the one above to XXX_memory_ rathe
118 Address eager_deoptimization_entry_start_;
119 Address lazy_deoptimization_entry_start_;
120 MemoryChunk* eager_deoptimization_chunk_;
121 MemoryChunk* lazy_deoptimization_chunk_;
118 Deoptimizer* current_; 122 Deoptimizer* current_;
119 123
120 #ifdef ENABLE_DEBUGGER_SUPPORT 124 #ifdef ENABLE_DEBUGGER_SUPPORT
121 DeoptimizedFrameInfo* deoptimized_frame_info_; 125 DeoptimizedFrameInfo* deoptimized_frame_info_;
122 #endif 126 #endif
123 127
124 // List of deoptimized code which still have references from active stack 128 // List of deoptimized code which still have references from active stack
125 // frames. These code objects are needed by the deoptimizer when deoptimizing 129 // frames. These code objects are needed by the deoptimizer when deoptimizing
126 // a frame for which the code object for the function function has been 130 // a frame for which the code object for the function function has been
127 // changed from the code present when deoptimizing was done. 131 // changed from the code present when deoptimizing was done.
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 Object** expression_stack_; 878 Object** expression_stack_;
875 int source_position_; 879 int source_position_;
876 880
877 friend class Deoptimizer; 881 friend class Deoptimizer;
878 }; 882 };
879 #endif 883 #endif
880 884
881 } } // namespace v8::internal 885 } } // namespace v8::internal
882 886
883 #endif // V8_DEOPTIMIZER_H_ 887 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | src/deoptimizer.cc » ('j') | src/deoptimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698