OLD | NEW |
---|---|
1 // Copyright 2011 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 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
132 static int patch_size(); | 132 static int patch_size(); |
133 | 133 |
134 // Patch all stack guard checks in the unoptimized code to | 134 // Patch all stack guard checks in the unoptimized code to |
135 // unconditionally call replacement_code. | 135 // unconditionally call replacement_code. |
136 static void PatchStackCheckCode(Code* unoptimized_code, | 136 static void PatchStackCheckCode(Code* unoptimized_code, |
137 Code* check_code, | 137 Code* check_code, |
138 Code* replacement_code); | 138 Code* replacement_code); |
139 | 139 |
140 // Patch stack guard check at instruction before pc_after in | 140 // Patch stack guard check at instruction before pc_after in |
141 // the unoptimized code to unconditionally call replacement_code. | 141 // the unoptimized code to unconditionally call replacement_code. |
142 static void PatchStackCheckCodeAt(Address pc_after, | 142 static void PatchStackCheckCodeAt(Code* code, |
Erik Corry
2011/02/22 12:27:19
Call this variable unoptimized_code?
Vyacheslav Egorov (Chromium)
2011/02/23 14:31:46
Done.
| |
143 Address pc_after, | |
143 Code* check_code, | 144 Code* check_code, |
144 Code* replacement_code); | 145 Code* replacement_code); |
145 | 146 |
146 // Change all patched stack guard checks in the unoptimized code | 147 // Change all patched stack guard checks in the unoptimized code |
147 // back to a normal stack guard check. | 148 // back to a normal stack guard check. |
148 static void RevertStackCheckCode(Code* unoptimized_code, | 149 static void RevertStackCheckCode(Code* unoptimized_code, |
149 Code* check_code, | 150 Code* check_code, |
150 Code* replacement_code); | 151 Code* replacement_code); |
151 | 152 |
152 // Change all patched stack guard checks in the unoptimized code | 153 // Change all patched stack guard checks in the unoptimized code |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
520 Handle<Code> code_; | 521 Handle<Code> code_; |
521 | 522 |
522 // Next pointer for linked list. | 523 // Next pointer for linked list. |
523 DeoptimizingCodeListNode* next_; | 524 DeoptimizingCodeListNode* next_; |
524 }; | 525 }; |
525 | 526 |
526 | 527 |
527 } } // namespace v8::internal | 528 } } // namespace v8::internal |
528 | 529 |
529 #endif // V8_DEOPTIMIZER_H_ | 530 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |