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

Side by Side Diff: src/mips64/assembler-mips64.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 | « src/mips/simulator-mips.h ('k') | src/mips64/assembler-mips64.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 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 block_buffer_growth_ = false; 1265 block_buffer_growth_ = false;
1266 } 1266 }
1267 1267
1268 bool is_buffer_growth_blocked() const { 1268 bool is_buffer_growth_blocked() const {
1269 return block_buffer_growth_; 1269 return block_buffer_growth_;
1270 } 1270 }
1271 1271
1272 void EmitForbiddenSlotInstruction() { 1272 void EmitForbiddenSlotInstruction() {
1273 if (IsPrevInstrCompactBranch()) { 1273 if (IsPrevInstrCompactBranch()) {
1274 nop(); 1274 nop();
1275 ClearCompactBranchState();
1276 } 1275 }
1277 } 1276 }
1278 1277
1279 inline void CheckTrampolinePoolQuick(int extra_instructions = 0); 1278 inline void CheckTrampolinePoolQuick(int extra_instructions = 0);
1280 1279
1281 private: 1280 private:
1282 // Buffer size and constant pool distance are checked together at regular 1281 // Buffer size and constant pool distance are checked together at regular
1283 // intervals of kBufferCheckInterval emitted bytes. 1282 // intervals of kBufferCheckInterval emitted bytes.
1284 static const int kBufferCheckInterval = 1*KB/2; 1283 static const int kBufferCheckInterval = 1*KB/2;
1285 1284
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 public: 1498 public:
1500 explicit EnsureSpace(Assembler* assembler) { 1499 explicit EnsureSpace(Assembler* assembler) {
1501 assembler->CheckBuffer(); 1500 assembler->CheckBuffer();
1502 } 1501 }
1503 }; 1502 };
1504 1503
1505 } // namespace internal 1504 } // namespace internal
1506 } // namespace v8 1505 } // namespace v8
1507 1506
1508 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1507 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/simulator-mips.h ('k') | src/mips64/assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698