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

Side by Side Diff: src/x64/deoptimizer-x64.cc

Issue 6542047: Basic implementation of incremental marking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
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
« src/objects-inl.h ('K') | « src/spaces-inl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 function->ReplaceCode(function->shared()->code()); 193 function->ReplaceCode(function->shared()->code());
194 194
195 if (FLAG_trace_deopt) { 195 if (FLAG_trace_deopt) {
196 PrintF("[forced deoptimization: "); 196 PrintF("[forced deoptimization: ");
197 function->PrintName(); 197 function->PrintName();
198 PrintF(" / %" V8PRIxPTR "]\n", reinterpret_cast<intptr_t>(function)); 198 PrintF(" / %" V8PRIxPTR "]\n", reinterpret_cast<intptr_t>(function));
199 } 199 }
200 } 200 }
201 201
202 202
203 void Deoptimizer::PatchStackCheckCodeAt(Address pc_after, 203 void Deoptimizer::PatchStackCheckCodeAt(Code* code,
Erik Corry 2011/02/22 12:27:19 Add TODO?
204 Address pc_after,
204 Code* check_code, 205 Code* check_code,
205 Code* replacement_code) { 206 Code* replacement_code) {
206 Address call_target_address = pc_after - kIntSize; 207 Address call_target_address = pc_after - kIntSize;
207 ASSERT(check_code->entry() == 208 ASSERT(check_code->entry() ==
208 Assembler::target_address_at(call_target_address)); 209 Assembler::target_address_at(call_target_address));
209 // The stack check code matches the pattern: 210 // The stack check code matches the pattern:
210 // 211 //
211 // cmp rsp, <limit> 212 // cmp rsp, <limit>
212 // jae ok 213 // jae ok
213 // call <stack guard> 214 // call <stack guard>
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 } 631 }
631 __ bind(&done); 632 __ bind(&done);
632 } 633 }
633 634
634 #undef __ 635 #undef __
635 636
636 637
637 } } // namespace v8::internal 638 } } // namespace v8::internal
638 639
639 #endif // V8_TARGET_ARCH_X64 640 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/objects-inl.h ('K') | « src/spaces-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698