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

Side by Side Diff: src/deoptimizer.h

Issue 6597029: [Isolates] Merge r 6300:6500 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 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 | « src/debug-debugger.js ('k') | src/extensions/experimental/experimental.gyp » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 static void DeoptimizeGlobalObject(JSObject* object); 147 static void DeoptimizeGlobalObject(JSObject* object);
148 148
149 static void VisitAllOptimizedFunctionsForContext( 149 static void VisitAllOptimizedFunctionsForContext(
150 Context* context, OptimizedFunctionVisitor* visitor); 150 Context* context, OptimizedFunctionVisitor* visitor);
151 151
152 static void VisitAllOptimizedFunctionsForGlobalObject( 152 static void VisitAllOptimizedFunctionsForGlobalObject(
153 JSObject* object, OptimizedFunctionVisitor* visitor); 153 JSObject* object, OptimizedFunctionVisitor* visitor);
154 154
155 static void VisitAllOptimizedFunctions(OptimizedFunctionVisitor* visitor); 155 static void VisitAllOptimizedFunctions(OptimizedFunctionVisitor* visitor);
156 156
157 // Given the relocation info of a call to the stack check stub, patch the 157 // Patch all stack guard checks in the unoptimized code to
158 // code so as to go unconditionally to the on-stack replacement builtin 158 // unconditionally call replacement_code.
159 // instead. 159 static void PatchStackCheckCode(Code* unoptimized_code,
160 static void PatchStackCheckCode(RelocInfo* rinfo, Code* replacement_code); 160 Code* check_code,
161 Code* replacement_code);
161 162
162 // Given the relocation info of a call to the on-stack replacement 163 // Change all patched stack guard checks in the unoptimized code
163 // builtin, patch the code back to the original stack check code. 164 // back to a normal stack guard check.
164 static void RevertStackCheckCode(RelocInfo* rinfo, Code* check_code); 165 static void RevertStackCheckCode(Code* unoptimized_code,
166 Code* check_code,
167 Code* replacement_code);
165 168
166 ~Deoptimizer(); 169 ~Deoptimizer();
167 170
168 void InsertHeapNumberValues(int index, JavaScriptFrame* frame); 171 void InsertHeapNumberValues(int index, JavaScriptFrame* frame);
169 172
170 static void ComputeOutputFrames(Deoptimizer* deoptimizer, Isolate* isolate); 173 static void ComputeOutputFrames(Deoptimizer* deoptimizer, Isolate* isolate);
171 174
172 static Address GetDeoptimizationEntry(int id, BailoutType type); 175 static Address GetDeoptimizationEntry(int id, BailoutType type);
173 static int GetDeoptimizationId(Address addr, BailoutType type); 176 static int GetDeoptimizationId(Address addr, BailoutType type);
174 static int GetOutputInfo(DeoptimizationOutputData* data, 177 static int GetOutputInfo(DeoptimizationOutputData* data,
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 Handle<Code> code_; 520 Handle<Code> code_;
518 521
519 // Next pointer for linked list. 522 // Next pointer for linked list.
520 DeoptimizingCodeListNode* next_; 523 DeoptimizingCodeListNode* next_;
521 }; 524 };
522 525
523 526
524 } } // namespace v8::internal 527 } } // namespace v8::internal
525 528
526 #endif // V8_DEOPTIMIZER_H_ 529 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/debug-debugger.js ('k') | src/extensions/experimental/experimental.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698