| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 GenerateDeferredCode() && | 96 GenerateDeferredCode() && |
| 97 GenerateJumpTable() && | 97 GenerateJumpTable() && |
| 98 GenerateSafepointTable(); | 98 GenerateSafepointTable(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 | 101 |
| 102 void LCodeGen::FinishCode(Handle<Code> code) { | 102 void LCodeGen::FinishCode(Handle<Code> code) { |
| 103 ASSERT(is_done()); | 103 ASSERT(is_done()); |
| 104 code->set_stack_slots(GetStackSlotCount()); | 104 code->set_stack_slots(GetStackSlotCount()); |
| 105 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); | 105 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
| 106 RegisterDependentCodeForEmbeddedMaps(code); | 106 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); |
| 107 PopulateDeoptimizationData(code); | 107 PopulateDeoptimizationData(code); |
| 108 if (!info()->IsStub()) { | 108 if (!info()->IsStub()) { |
| 109 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); | 109 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); |
| 110 } | 110 } |
| 111 info()->CommitDependencies(code); | 111 info()->CommitDependencies(code); |
| 112 } | 112 } |
| 113 | 113 |
| 114 | 114 |
| 115 void LCodeGen::Abort(BailoutReason reason) { | 115 void LCodeGen::Abort(BailoutReason reason) { |
| 116 info()->set_bailout_reason(reason); | 116 info()->set_bailout_reason(reason); |
| (...skipping 6138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6255 FixedArray::kHeaderSize - kPointerSize)); | 6255 FixedArray::kHeaderSize - kPointerSize)); |
| 6256 __ bind(&done); | 6256 __ bind(&done); |
| 6257 } | 6257 } |
| 6258 | 6258 |
| 6259 | 6259 |
| 6260 #undef __ | 6260 #undef __ |
| 6261 | 6261 |
| 6262 } } // namespace v8::internal | 6262 } } // namespace v8::internal |
| 6263 | 6263 |
| 6264 #endif // V8_TARGET_ARCH_IA32 | 6264 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |