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

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

Issue 1232343002: [arm] CheckConstPool between TurboFan instructions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/arm/assembler-arm.h ('k') | src/compiler/arm/code-generator-arm.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 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 rs_.is(no_reg) && 426 rs_.is(no_reg) &&
427 shift_op_ == LSL && 427 shift_op_ == LSL &&
428 shift_imm_ == 0; 428 shift_imm_ == 0;
429 } 429 }
430 430
431 431
432 void Assembler::CheckBuffer() { 432 void Assembler::CheckBuffer() {
433 if (buffer_space() <= kGap) { 433 if (buffer_space() <= kGap) {
434 GrowBuffer(); 434 GrowBuffer();
435 } 435 }
436 if (pc_offset() >= next_buffer_check_) { 436 MaybeCheckConstPool();
437 CheckConstPool(false, true);
438 }
439 } 437 }
440 438
441 439
442 void Assembler::emit(Instr x) { 440 void Assembler::emit(Instr x) {
443 CheckBuffer(); 441 CheckBuffer();
444 *reinterpret_cast<Instr*>(pc_) = x; 442 *reinterpret_cast<Instr*>(pc_) = x;
445 pc_ += kInstrSize; 443 pc_ += kInstrSize;
446 } 444 }
447 445
448 446
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 691 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
694 CpuFeatures::FlushICache(pc, 4 * kInstrSize); 692 CpuFeatures::FlushICache(pc, 4 * kInstrSize);
695 } 693 }
696 } 694 }
697 } 695 }
698 696
699 697
700 } } // namespace v8::internal 698 } } // namespace v8::internal
701 699
702 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ 700 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698