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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 Vector<char> copy = Vector<char>::New(length + 1); | 120 Vector<char> copy = Vector<char>::New(length + 1); |
121 memcpy(copy.start(), builder.Finalize(), copy.length()); | 121 memcpy(copy.start(), builder.Finalize(), copy.length()); |
122 masm()->RecordComment(copy.start()); | 122 masm()->RecordComment(copy.start()); |
123 } | 123 } |
124 | 124 |
125 | 125 |
126 bool LCodeGen::GenerateRelocPadding() { | 126 bool LCodeGen::GenerateRelocPadding() { |
127 int reloc_size = masm()->relocation_writer_size(); | 127 int reloc_size = masm()->relocation_writer_size(); |
128 while (reloc_size < deoptimization_reloc_size.min_size) { | 128 while (reloc_size < deoptimization_reloc_size.min_size) { |
129 __ RecordComment(RelocInfo::kFillerCommentString, true); | 129 __ RecordComment(RelocInfo::kFillerCommentString, true); |
130 reloc_size += RelocInfo::kRelocCommentSize; | 130 reloc_size += RelocInfo::kMinRelocCommentSize; |
131 } | 131 } |
132 return !is_aborted(); | 132 return !is_aborted(); |
133 } | 133 } |
134 | 134 |
135 | 135 |
136 bool LCodeGen::GeneratePrologue() { | 136 bool LCodeGen::GeneratePrologue() { |
137 ASSERT(is_generating()); | 137 ASSERT(is_generating()); |
138 | 138 |
139 #ifdef DEBUG | 139 #ifdef DEBUG |
140 if (strlen(FLAG_stop_at) > 0 && | 140 if (strlen(FLAG_stop_at) > 0 && |
(...skipping 3730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3871 ASSERT(osr_pc_offset_ == -1); | 3871 ASSERT(osr_pc_offset_ == -1); |
3872 osr_pc_offset_ = masm()->pc_offset(); | 3872 osr_pc_offset_ = masm()->pc_offset(); |
3873 } | 3873 } |
3874 | 3874 |
3875 | 3875 |
3876 #undef __ | 3876 #undef __ |
3877 | 3877 |
3878 } } // namespace v8::internal | 3878 } } // namespace v8::internal |
3879 | 3879 |
3880 #endif // V8_TARGET_ARCH_IA32 | 3880 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |