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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 6334083: Streamline the code for patching optimized code for lazy deopt. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/build/ia32
Patch Set: Rewrite the incorrect comment mentioning absolute calls. 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/x64/deoptimizer-x64.cc ('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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 return GeneratePrologue() && 46 return GeneratePrologue() &&
47 GenerateBody() && 47 GenerateBody() &&
48 GenerateDeferredCode() && 48 GenerateDeferredCode() &&
49 GenerateSafepointTable(); 49 GenerateSafepointTable();
50 } 50 }
51 51
52 52
53 void LCodeGen::FinishCode(Handle<Code> code) { 53 void LCodeGen::FinishCode(Handle<Code> code) {
54 ASSERT(is_done()); 54 ASSERT(is_done());
55 code->set_stack_slots(StackSlotCount()); 55 code->set_stack_slots(StackSlotCount());
56 code->set_safepoint_table_start(safepoints_.GetCodeOffset()); 56 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
57 PopulateDeoptimizationData(code); 57 PopulateDeoptimizationData(code);
58 } 58 }
59 59
60 60
61 void LCodeGen::Abort(const char* format, ...) { 61 void LCodeGen::Abort(const char* format, ...) {
62 if (FLAG_trace_bailout) { 62 if (FLAG_trace_bailout) {
63 SmartPointer<char> debug_name = graph()->debug_name()->ToCString(); 63 SmartPointer<char> debug_name = graph()->debug_name()->ToCString();
64 PrintF("Aborting LCodeGen in @\"%s\": ", *debug_name); 64 PrintF("Aborting LCodeGen in @\"%s\": ", *debug_name);
65 va_list arguments; 65 va_list arguments;
66 va_start(arguments, format); 66 va_start(arguments, format);
(...skipping 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after
2006 2006
2007 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 2007 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
2008 Abort("Unimplemented: %s", "DoOsrEntry"); 2008 Abort("Unimplemented: %s", "DoOsrEntry");
2009 } 2009 }
2010 2010
2011 #undef __ 2011 #undef __
2012 2012
2013 } } // namespace v8::internal 2013 } } // namespace v8::internal
2014 2014
2015 #endif // V8_TARGET_ARCH_X64 2015 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698