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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |