Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: src/a64/assembler-a64-inl.h

Issue 181873002: A64: Move veneer emission checking in the Assembler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove the force_emit parameter in CheckVeneerPool Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/a64/assembler-a64.cc ('k') | src/a64/code-stubs-a64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 void Assembler::LoadRelocated(const CPURegister& rt, const Operand& operand) { 1171 void Assembler::LoadRelocated(const CPURegister& rt, const Operand& operand) {
1172 LoadRelocatedValue(rt, operand, LDR_x_lit); 1172 LoadRelocatedValue(rt, operand, LDR_x_lit);
1173 } 1173 }
1174 1174
1175 1175
1176 inline void Assembler::CheckBuffer() { 1176 inline void Assembler::CheckBuffer() {
1177 ASSERT(pc_ < (buffer_ + buffer_size_)); 1177 ASSERT(pc_ < (buffer_ + buffer_size_));
1178 if (buffer_space() < kGap) { 1178 if (buffer_space() < kGap) {
1179 GrowBuffer(); 1179 GrowBuffer();
1180 } 1180 }
1181 if (pc_offset() >= next_buffer_check_) { 1181 if (pc_offset() >= next_veneer_pool_check_) {
1182 CheckVeneerPool(true);
1183 }
1184 if (pc_offset() >= next_constant_pool_check_) {
1182 CheckConstPool(false, true); 1185 CheckConstPool(false, true);
1183 } 1186 }
1184 } 1187 }
1185 1188
1186 1189
1187 TypeFeedbackId Assembler::RecordedAstId() { 1190 TypeFeedbackId Assembler::RecordedAstId() {
1188 ASSERT(!recorded_ast_id_.IsNone()); 1191 ASSERT(!recorded_ast_id_.IsNone());
1189 return recorded_ast_id_; 1192 return recorded_ast_id_;
1190 } 1193 }
1191 1194
1192 1195
1193 void Assembler::ClearRecordedAstId() { 1196 void Assembler::ClearRecordedAstId() {
1194 recorded_ast_id_ = TypeFeedbackId::None(); 1197 recorded_ast_id_ = TypeFeedbackId::None();
1195 } 1198 }
1196 1199
1197 1200
1198 } } // namespace v8::internal 1201 } } // namespace v8::internal
1199 1202
1200 #endif // V8_A64_ASSEMBLER_A64_INL_H_ 1203 #endif // V8_A64_ASSEMBLER_A64_INL_H_
OLDNEW
« no previous file with comments | « src/a64/assembler-a64.cc ('k') | src/a64/code-stubs-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698