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

Side by Side Diff: src/mips/assembler-mips.h

Issue 1593713002: MIPS: Refine 'r6 compact branch optimization.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add DCHECKs, rebased. Created 4 years, 11 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
« no previous file with comments | « no previous file | src/mips/assembler-mips.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 1199
1200 void EndBlockGrowBuffer() { 1200 void EndBlockGrowBuffer() {
1201 DCHECK(block_buffer_growth_); 1201 DCHECK(block_buffer_growth_);
1202 block_buffer_growth_ = false; 1202 block_buffer_growth_ = false;
1203 } 1203 }
1204 1204
1205 bool is_buffer_growth_blocked() const { 1205 bool is_buffer_growth_blocked() const {
1206 return block_buffer_growth_; 1206 return block_buffer_growth_;
1207 } 1207 }
1208 1208
1209 void EmitForbiddenSlotInstruction() {
1210 if (IsPrevInstrCompactBranch()) {
1211 nop();
1212 }
1213 }
1214
1209 inline void CheckTrampolinePoolQuick(int extra_instructions = 0); 1215 inline void CheckTrampolinePoolQuick(int extra_instructions = 0);
1210 1216
1211 private: 1217 private:
1212 inline static void set_target_internal_reference_encoded_at(Address pc, 1218 inline static void set_target_internal_reference_encoded_at(Address pc,
1213 Address target); 1219 Address target);
1214 1220
1215 // Buffer size and constant pool distance are checked together at regular 1221 // Buffer size and constant pool distance are checked together at regular
1216 // intervals of kBufferCheckInterval emitted bytes. 1222 // intervals of kBufferCheckInterval emitted bytes.
1217 static const int kBufferCheckInterval = 1*KB/2; 1223 static const int kBufferCheckInterval = 1*KB/2;
1218 1224
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 public: 1438 public:
1433 explicit EnsureSpace(Assembler* assembler) { 1439 explicit EnsureSpace(Assembler* assembler) {
1434 assembler->CheckBuffer(); 1440 assembler->CheckBuffer();
1435 } 1441 }
1436 }; 1442 };
1437 1443
1438 } // namespace internal 1444 } // namespace internal
1439 } // namespace v8 1445 } // namespace v8
1440 1446
1441 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1447 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « no previous file | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698