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

Side by Side Diff: src/mips64/assembler-mips64.cc

Issue 1235883004: MIPS64: Fix BlockTrampolinePoolFor() to emit trampoline before blocking, if needed. (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/mips64/assembler-mips64.h ('k') | src/mips64/assembler-mips64-inl.h » ('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 3079 matching lines...) Expand 10 before | Expand all | Expand 10 after
3090 ClearRecordedAstId(); 3090 ClearRecordedAstId();
3091 reloc_info_writer.Write(&reloc_info_with_ast_id); 3091 reloc_info_writer.Write(&reloc_info_with_ast_id);
3092 } else { 3092 } else {
3093 reloc_info_writer.Write(&rinfo); 3093 reloc_info_writer.Write(&rinfo);
3094 } 3094 }
3095 } 3095 }
3096 } 3096 }
3097 3097
3098 3098
3099 void Assembler::BlockTrampolinePoolFor(int instructions) { 3099 void Assembler::BlockTrampolinePoolFor(int instructions) {
3100 CheckTrampolinePoolQuick(instructions);
3100 BlockTrampolinePoolBefore(pc_offset() + instructions * kInstrSize); 3101 BlockTrampolinePoolBefore(pc_offset() + instructions * kInstrSize);
3101 } 3102 }
3102 3103
3103 3104
3104 void Assembler::CheckTrampolinePool() { 3105 void Assembler::CheckTrampolinePool() {
3105 // Some small sequences of instructions must not be broken up by the 3106 // Some small sequences of instructions must not be broken up by the
3106 // insertion of a trampoline pool; such sequences are protected by setting 3107 // insertion of a trampoline pool; such sequences are protected by setting
3107 // either trampoline_pool_blocked_nesting_ or no_trampoline_pool_before_, 3108 // either trampoline_pool_blocked_nesting_ or no_trampoline_pool_before_,
3108 // which are both checked here. Also, recursive calls to CheckTrampolinePool 3109 // which are both checked here. Also, recursive calls to CheckTrampolinePool
3109 // are blocked by trampoline_pool_blocked_nesting_. 3110 // are blocked by trampoline_pool_blocked_nesting_.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
3240 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3241 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3241 CpuFeatures::FlushICache(pc, 4 * Assembler::kInstrSize); 3242 CpuFeatures::FlushICache(pc, 4 * Assembler::kInstrSize);
3242 } 3243 }
3243 } 3244 }
3244 3245
3245 3246
3246 } // namespace internal 3247 } // namespace internal
3247 } // namespace v8 3248 } // namespace v8
3248 3249
3249 #endif // V8_TARGET_ARCH_MIPS64 3250 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/assembler-mips64.h ('k') | src/mips64/assembler-mips64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698