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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 | 81 |
82 void LCodeGen::FinishCode(Handle<Code> code) { | 82 void LCodeGen::FinishCode(Handle<Code> code) { |
83 ASSERT(is_done()); | 83 ASSERT(is_done()); |
84 code->set_stack_slots(GetStackSlotCount()); | 84 code->set_stack_slots(GetStackSlotCount()); |
85 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); | 85 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
86 if (FLAG_weak_embedded_maps_in_optimized_code) { | 86 if (FLAG_weak_embedded_maps_in_optimized_code) { |
87 RegisterDependentCodeForEmbeddedMaps(code); | 87 RegisterDependentCodeForEmbeddedMaps(code); |
88 } | 88 } |
89 PopulateDeoptimizationData(code); | 89 PopulateDeoptimizationData(code); |
90 info()->CommitDependentMaps(code); | 90 info()->CommitDependencies(code); |
91 } | 91 } |
92 | 92 |
93 | 93 |
94 void LCodeGen::Abort(const char* reason) { | 94 void LCodeGen::Abort(const char* reason) { |
95 info()->set_bailout_reason(reason); | 95 info()->set_bailout_reason(reason); |
96 status_ = ABORTED; | 96 status_ = ABORTED; |
97 } | 97 } |
98 | 98 |
99 | 99 |
100 void LCodeGen::Comment(const char* format, ...) { | 100 void LCodeGen::Comment(const char* format, ...) { |
(...skipping 5823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5924 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5924 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
5925 __ ldr(result, FieldMemOperand(scratch, | 5925 __ ldr(result, FieldMemOperand(scratch, |
5926 FixedArray::kHeaderSize - kPointerSize)); | 5926 FixedArray::kHeaderSize - kPointerSize)); |
5927 __ bind(&done); | 5927 __ bind(&done); |
5928 } | 5928 } |
5929 | 5929 |
5930 | 5930 |
5931 #undef __ | 5931 #undef __ |
5932 | 5932 |
5933 } } // namespace v8::internal | 5933 } } // namespace v8::internal |
OLD | NEW |