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

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, 10 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') | no next file with comments »
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 #ifdef ENABLE_DEBUGGER_SUPPORT 106 #ifdef ENABLE_DEBUGGER_SUPPORT
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 MemoryChunk* eager_deoptimization_entry_code_;
117 VirtualMemory* lazy_deoptimization_entry_code_; 117 MemoryChunk* lazy_deoptimization_entry_code_;
118 Deoptimizer* current_; 118 Deoptimizer* current_;
119 119
120 #ifdef ENABLE_DEBUGGER_SUPPORT 120 #ifdef ENABLE_DEBUGGER_SUPPORT
121 DeoptimizedFrameInfo* deoptimized_frame_info_; 121 DeoptimizedFrameInfo* deoptimized_frame_info_;
122 #endif 122 #endif
123 123
124 // List of deoptimized code which still have references from active stack 124 // List of deoptimized code which still have references from active stack
125 // frames. These code objects are needed by the deoptimizer when deoptimizing 125 // 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 126 // a frame for which the code object for the function function has been
127 // changed from the code present when deoptimizing was done. 127 // changed from the code present when deoptimizing was done.
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 Object** expression_stack_; 875 Object** expression_stack_;
876 int source_position_; 876 int source_position_;
877 877
878 friend class Deoptimizer; 878 friend class Deoptimizer;
879 }; 879 };
880 #endif 880 #endif
881 881
882 } } // namespace v8::internal 882 } } // namespace v8::internal
883 883
884 #endif // V8_DEOPTIMIZER_H_ 884 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698