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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 return GeneratePrologue() && | 216 return GeneratePrologue() && |
217 GenerateBody() && | 217 GenerateBody() && |
218 GenerateDeferredCode() && | 218 GenerateDeferredCode() && |
219 GenerateSafepointTable(); | 219 GenerateSafepointTable(); |
220 } | 220 } |
221 | 221 |
222 | 222 |
223 void LCodeGen::FinishCode(Handle<Code> code) { | 223 void LCodeGen::FinishCode(Handle<Code> code) { |
224 ASSERT(is_done()); | 224 ASSERT(is_done()); |
225 code->set_stack_slots(StackSlotCount()); | 225 code->set_stack_slots(StackSlotCount()); |
226 code->set_safepoint_table_start(safepoints_.GetCodeOffset()); | 226 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
227 PopulateDeoptimizationData(code); | 227 PopulateDeoptimizationData(code); |
228 } | 228 } |
229 | 229 |
230 | 230 |
231 void LCodeGen::Abort(const char* format, ...) { | 231 void LCodeGen::Abort(const char* format, ...) { |
232 if (FLAG_trace_bailout) { | 232 if (FLAG_trace_bailout) { |
233 SmartPointer<char> debug_name = graph()->debug_name()->ToCString(); | 233 SmartPointer<char> debug_name = graph()->debug_name()->ToCString(); |
234 PrintF("Aborting LCodeGen in @\"%s\": ", *debug_name); | 234 PrintF("Aborting LCodeGen in @\"%s\": ", *debug_name); |
235 va_list arguments; | 235 va_list arguments; |
236 va_start(arguments, format); | 236 va_start(arguments, format); |
(...skipping 3445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3682 | 3682 |
3683 | 3683 |
3684 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { | 3684 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { |
3685 Abort("DoOsrEntry unimplemented."); | 3685 Abort("DoOsrEntry unimplemented."); |
3686 } | 3686 } |
3687 | 3687 |
3688 | 3688 |
3689 #undef __ | 3689 #undef __ |
3690 | 3690 |
3691 } } // namespace v8::internal | 3691 } } // namespace v8::internal |
OLD | NEW |