| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 GenerateDeferredCode() && | 77 GenerateDeferredCode() && |
| 78 GenerateDeoptJumpTable() && | 78 GenerateDeoptJumpTable() && |
| 79 GenerateSafepointTable(); | 79 GenerateSafepointTable(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 | 82 |
| 83 void LCodeGen::FinishCode(Handle<Code> code) { | 83 void LCodeGen::FinishCode(Handle<Code> code) { |
| 84 ASSERT(is_done()); | 84 ASSERT(is_done()); |
| 85 code->set_stack_slots(GetStackSlotCount()); | 85 code->set_stack_slots(GetStackSlotCount()); |
| 86 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); | 86 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
| 87 RegisterDependentCodeForEmbeddedMaps(code); | 87 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); |
| 88 PopulateDeoptimizationData(code); | 88 PopulateDeoptimizationData(code); |
| 89 info()->CommitDependencies(code); | 89 info()->CommitDependencies(code); |
| 90 } | 90 } |
| 91 | 91 |
| 92 | 92 |
| 93 void LChunkBuilder::Abort(BailoutReason reason) { | 93 void LChunkBuilder::Abort(BailoutReason reason) { |
| 94 info()->set_bailout_reason(reason); | 94 info()->set_bailout_reason(reason); |
| 95 status_ = ABORTED; | 95 status_ = ABORTED; |
| 96 } | 96 } |
| 97 | 97 |
| (...skipping 5637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5735 __ Subu(scratch, result, scratch); | 5735 __ Subu(scratch, result, scratch); |
| 5736 __ lw(result, FieldMemOperand(scratch, | 5736 __ lw(result, FieldMemOperand(scratch, |
| 5737 FixedArray::kHeaderSize - kPointerSize)); | 5737 FixedArray::kHeaderSize - kPointerSize)); |
| 5738 __ bind(&done); | 5738 __ bind(&done); |
| 5739 } | 5739 } |
| 5740 | 5740 |
| 5741 | 5741 |
| 5742 #undef __ | 5742 #undef __ |
| 5743 | 5743 |
| 5744 } } // namespace v8::internal | 5744 } } // namespace v8::internal |
| OLD | NEW |