OLD | NEW |
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 Loading... |
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 |
OLD | NEW |