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

Side by Side Diff: src/deoptimizer.h

Issue 6334055: Merge r6576 and r6581 from bleeding_edge to 3.0 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.0/build/ia32
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/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 static void DeoptimizeGlobalObject(JSObject* object); 121 static void DeoptimizeGlobalObject(JSObject* object);
122 122
123 static void VisitAllOptimizedFunctionsForContext( 123 static void VisitAllOptimizedFunctionsForContext(
124 Context* context, OptimizedFunctionVisitor* visitor); 124 Context* context, OptimizedFunctionVisitor* visitor);
125 125
126 static void VisitAllOptimizedFunctionsForGlobalObject( 126 static void VisitAllOptimizedFunctionsForGlobalObject(
127 JSObject* object, OptimizedFunctionVisitor* visitor); 127 JSObject* object, OptimizedFunctionVisitor* visitor);
128 128
129 static void VisitAllOptimizedFunctions(OptimizedFunctionVisitor* visitor); 129 static void VisitAllOptimizedFunctions(OptimizedFunctionVisitor* visitor);
130 130
131 // The size in bytes of the code required at a lazy deopt patch site.
132 static int patch_size();
133
131 // Patch all stack guard checks in the unoptimized code to 134 // Patch all stack guard checks in the unoptimized code to
132 // unconditionally call replacement_code. 135 // unconditionally call replacement_code.
133 static void PatchStackCheckCode(Code* unoptimized_code, 136 static void PatchStackCheckCode(Code* unoptimized_code,
134 Code* check_code, 137 Code* check_code,
135 Code* replacement_code); 138 Code* replacement_code);
136 139
137 // Change all patched stack guard checks in the unoptimized code 140 // Change all patched stack guard checks in the unoptimized code
138 // back to a normal stack guard check. 141 // back to a normal stack guard check.
139 static void RevertStackCheckCode(Code* unoptimized_code, 142 static void RevertStackCheckCode(Code* unoptimized_code,
140 Code* check_code, 143 Code* check_code,
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 Handle<Code> code_; 508 Handle<Code> code_;
506 509
507 // Next pointer for linked list. 510 // Next pointer for linked list.
508 DeoptimizingCodeListNode* next_; 511 DeoptimizingCodeListNode* next_;
509 }; 512 };
510 513
511 514
512 } } // namespace v8::internal 515 } } // namespace v8::internal
513 516
514 #endif // V8_DEOPTIMIZER_H_ 517 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698