| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); | 87 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); |
| 88 PopulateDeoptimizationData(code); | 88 PopulateDeoptimizationData(code); |
| 89 info()->CommitDependencies(code); | |
| 90 } | 89 } |
| 91 | 90 |
| 92 | 91 |
| 93 void LChunkBuilder::Abort(BailoutReason reason) { | 92 void LChunkBuilder::Abort(BailoutReason reason) { |
| 94 info()->set_bailout_reason(reason); | 93 info()->set_bailout_reason(reason); |
| 95 status_ = ABORTED; | 94 status_ = ABORTED; |
| 96 } | 95 } |
| 97 | 96 |
| 98 | 97 |
| 99 void LCodeGen::SaveCallerDoubles() { | 98 void LCodeGen::SaveCallerDoubles() { |
| (...skipping 5797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5897 __ lw(result, FieldMemOperand(scratch, | 5896 __ lw(result, FieldMemOperand(scratch, |
| 5898 FixedArray::kHeaderSize - kPointerSize)); | 5897 FixedArray::kHeaderSize - kPointerSize)); |
| 5899 __ bind(deferred->exit()); | 5898 __ bind(deferred->exit()); |
| 5900 __ bind(&done); | 5899 __ bind(&done); |
| 5901 } | 5900 } |
| 5902 | 5901 |
| 5903 | 5902 |
| 5904 #undef __ | 5903 #undef __ |
| 5905 | 5904 |
| 5906 } } // namespace v8::internal | 5905 } } // namespace v8::internal |
| OLD | NEW |