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

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

Issue 22893050: Get rid of duplicated CPU::DebugBreak() method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #else // USE_SIMULATOR. 80 #else // USE_SIMULATOR.
81 // Not generating mips instructions for C-code. This means that we are 81 // Not generating mips instructions for C-code. This means that we are
82 // building a mips emulator based target. We should notify the simulator 82 // building a mips emulator based target. We should notify the simulator
83 // that the Icache was flushed. 83 // that the Icache was flushed.
84 // None of this code ends up in the snapshot so there are no issues 84 // None of this code ends up in the snapshot so there are no issues
85 // around whether or not to generate the code when building snapshots. 85 // around whether or not to generate the code when building snapshots.
86 Simulator::FlushICache(Isolate::Current()->simulator_i_cache(), start, size); 86 Simulator::FlushICache(Isolate::Current()->simulator_i_cache(), start, size);
87 #endif // USE_SIMULATOR. 87 #endif // USE_SIMULATOR.
88 } 88 }
89 89
90
91 void CPU::DebugBreak() {
92 #ifdef __mips
93 asm volatile("break");
94 #endif // #ifdef __mips
95 }
96
97
98 } } // namespace v8::internal 90 } } // namespace v8::internal
99 91
100 #endif // V8_TARGET_ARCH_MIPS 92 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« src/ia32/cpu-ia32.cc ('K') | « src/ia32/cpu-ia32.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698