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

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

Issue 16093041: Fix compilation with gdbjit=on. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: remove GOATS :) Created 7 years, 6 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/gdb-jit.cc ('k') | src/objects.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 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2191 // li sequence with nops. 2191 // li sequence with nops.
2192 // This optimization can only be applied if the rt-code from instr2 is the 2192 // This optimization can only be applied if the rt-code from instr2 is the
2193 // register used for the jalr/jr. Finally, we have to skip 'jr ra', which is 2193 // register used for the jalr/jr. Finally, we have to skip 'jr ra', which is
2194 // mips return. Occasionally this lands after an li(). 2194 // mips return. Occasionally this lands after an li().
2195 2195
2196 Instr instr3 = instr_at(pc + 2 * kInstrSize); 2196 Instr instr3 = instr_at(pc + 2 * kInstrSize);
2197 uint32_t ipc = reinterpret_cast<uint32_t>(pc + 3 * kInstrSize); 2197 uint32_t ipc = reinterpret_cast<uint32_t>(pc + 3 * kInstrSize);
2198 bool in_range = (ipc ^ static_cast<uint32_t>(itarget) >> 2198 bool in_range = (ipc ^ static_cast<uint32_t>(itarget) >>
2199 (kImm26Bits + kImmFieldShift)) == 0; 2199 (kImm26Bits + kImmFieldShift)) == 0;
2200 uint32_t target_field = 2200 uint32_t target_field =
2201 static_cast<uint32_t>(itarget & kJumpAddrMask) >>kImmFieldShift; 2201 static_cast<uint32_t>(itarget & kJumpAddrMask) >> kImmFieldShift;
2202 bool patched_jump = false; 2202 bool patched_jump = false;
2203 2203
2204 #ifndef ALLOW_JAL_IN_BOUNDARY_REGION 2204 #ifndef ALLOW_JAL_IN_BOUNDARY_REGION
2205 // This is a workaround to the 24k core E156 bug (affect some 34k cores also). 2205 // This is a workaround to the 24k core E156 bug (affect some 34k cores also).
2206 // Since the excluded space is only 64KB out of 256MB (0.02 %), we will just 2206 // Since the excluded space is only 64KB out of 256MB (0.02 %), we will just
2207 // apply this workaround for all cores so we don't have to identify the core. 2207 // apply this workaround for all cores so we don't have to identify the core.
2208 if (in_range) { 2208 if (in_range) {
2209 // The 24k core E156 bug has some very specific requirements, we only check 2209 // The 24k core E156 bug has some very specific requirements, we only check
2210 // the most simple one: if the address of the delay slot instruction is in 2210 // the most simple one: if the address of the delay slot instruction is in
2211 // the first or last 32 KB of the 256 MB segment. 2211 // the first or last 32 KB of the 256 MB segment.
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 } 2286 }
2287 2287
2288 if (patched) { 2288 if (patched) {
2289 CPU::FlushICache(pc+2, sizeof(Address)); 2289 CPU::FlushICache(pc+2, sizeof(Address));
2290 } 2290 }
2291 } 2291 }
2292 2292
2293 } } // namespace v8::internal 2293 } } // namespace v8::internal
2294 2294
2295 #endif // V8_TARGET_ARCH_MIPS 2295 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/gdb-jit.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698