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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 GenerateJumpTable() && | 90 GenerateJumpTable() && |
91 GenerateSafepointTable(); | 91 GenerateSafepointTable(); |
92 } | 92 } |
93 | 93 |
94 | 94 |
95 void LCodeGen::FinishCode(Handle<Code> code) { | 95 void LCodeGen::FinishCode(Handle<Code> code) { |
96 ASSERT(is_done()); | 96 ASSERT(is_done()); |
97 code->set_stack_slots(StackSlotCount()); | 97 code->set_stack_slots(StackSlotCount()); |
98 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); | 98 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
99 PopulateDeoptimizationData(code); | 99 PopulateDeoptimizationData(code); |
| 100 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); |
100 } | 101 } |
101 | 102 |
102 | 103 |
103 void LCodeGen::Abort(const char* format, ...) { | 104 void LCodeGen::Abort(const char* format, ...) { |
104 if (FLAG_trace_bailout) { | 105 if (FLAG_trace_bailout) { |
105 SmartPointer<char> name(info()->shared_info()->DebugName()->ToCString()); | 106 SmartPointer<char> name(info()->shared_info()->DebugName()->ToCString()); |
106 PrintF("Aborting LCodeGen in @\"%s\": ", *name); | 107 PrintF("Aborting LCodeGen in @\"%s\": ", *name); |
107 va_list arguments; | 108 va_list arguments; |
108 va_start(arguments, format); | 109 va_start(arguments, format); |
109 OS::VPrint(format, arguments); | 110 OS::VPrint(format, arguments); |
(...skipping 3832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3942 RegisterEnvironmentForDeoptimization(environment); | 3943 RegisterEnvironmentForDeoptimization(environment); |
3943 ASSERT(osr_pc_offset_ == -1); | 3944 ASSERT(osr_pc_offset_ == -1); |
3944 osr_pc_offset_ = masm()->pc_offset(); | 3945 osr_pc_offset_ = masm()->pc_offset(); |
3945 } | 3946 } |
3946 | 3947 |
3947 #undef __ | 3948 #undef __ |
3948 | 3949 |
3949 } } // namespace v8::internal | 3950 } } // namespace v8::internal |
3950 | 3951 |
3951 #endif // V8_TARGET_ARCH_X64 | 3952 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |