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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/ia32/deoptimizer-ia32.cc ('k') | src/objects.h » ('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 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return GeneratePrologue() && 70 return GeneratePrologue() &&
71 GenerateBody() && 71 GenerateBody() &&
72 GenerateDeferredCode() && 72 GenerateDeferredCode() &&
73 GenerateSafepointTable(); 73 GenerateSafepointTable();
74 } 74 }
75 75
76 76
77 void LCodeGen::FinishCode(Handle<Code> code) { 77 void LCodeGen::FinishCode(Handle<Code> code) {
78 ASSERT(is_done()); 78 ASSERT(is_done());
79 code->set_stack_slots(StackSlotCount()); 79 code->set_stack_slots(StackSlotCount());
80 code->set_safepoint_table_start(safepoints_.GetCodeOffset()); 80 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
81 PopulateDeoptimizationData(code); 81 PopulateDeoptimizationData(code);
82 } 82 }
83 83
84 84
85 void LCodeGen::Abort(const char* format, ...) { 85 void LCodeGen::Abort(const char* format, ...) {
86 if (FLAG_trace_bailout) { 86 if (FLAG_trace_bailout) {
87 SmartPointer<char> debug_name = graph()->debug_name()->ToCString(); 87 SmartPointer<char> debug_name = graph()->debug_name()->ToCString();
88 PrintF("Aborting LCodeGen in @\"%s\": ", *debug_name); 88 PrintF("Aborting LCodeGen in @\"%s\": ", *debug_name);
89 va_list arguments; 89 va_list arguments;
90 va_start(arguments, format); 90 va_start(arguments, format);
(...skipping 3517 matching lines...) Expand 10 before | Expand all | Expand 10 after
3608 ASSERT(osr_pc_offset_ == -1); 3608 ASSERT(osr_pc_offset_ == -1);
3609 osr_pc_offset_ = masm()->pc_offset(); 3609 osr_pc_offset_ = masm()->pc_offset();
3610 } 3610 }
3611 3611
3612 3612
3613 #undef __ 3613 #undef __
3614 3614
3615 } } // namespace v8::internal 3615 } } // namespace v8::internal
3616 3616
3617 #endif // V8_TARGET_ARCH_IA32 3617 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698