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

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

Issue 9699071: MIPS: Branch delay slot and other optimizations. (Closed)
Patch Set: Created 8 years, 9 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/mips/code-stubs-mips.cc ('k') | src/mips/ic-mips.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 __ sll(reg, reg, kSmiTagSize); 146 __ sll(reg, reg, kSmiTagSize);
147 } 147 }
148 } 148 }
149 __ MultiPush(object_regs | non_object_regs); 149 __ MultiPush(object_regs | non_object_regs);
150 } 150 }
151 151
152 #ifdef DEBUG 152 #ifdef DEBUG
153 __ RecordComment("// Calling from debug break to runtime - come in - over"); 153 __ RecordComment("// Calling from debug break to runtime - come in - over");
154 #endif 154 #endif
155 __ mov(a0, zero_reg); // No arguments. 155 __ PrepareCEntryArgs(0); // No arguments.
156 __ li(a1, Operand(ExternalReference::debug_break(masm->isolate()))); 156 __ PrepareCEntryFunction(ExternalReference::debug_break(masm->isolate()));
157 157
158 CEntryStub ceb(1); 158 CEntryStub ceb(1);
159 __ CallStub(&ceb); 159 __ CallStub(&ceb);
160 160
161 // Restore the register values from the expression stack. 161 // Restore the register values from the expression stack.
162 if ((object_regs | non_object_regs) != 0) { 162 if ((object_regs | non_object_regs) != 0) {
163 __ MultiPop(object_regs | non_object_regs); 163 __ MultiPop(object_regs | non_object_regs);
164 for (int i = 0; i < kNumJSCallerSaved; i++) { 164 for (int i = 0; i < kNumJSCallerSaved; i++) {
165 int r = JSCallerSavedCode(i); 165 int r = JSCallerSavedCode(i);
166 Register reg = { r }; 166 Register reg = { r };
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 const bool Debug::kFrameDropperSupported = false; 326 const bool Debug::kFrameDropperSupported = false;
327 327
328 #undef __ 328 #undef __
329 329
330 330
331 #endif // ENABLE_DEBUGGER_SUPPORT 331 #endif // ENABLE_DEBUGGER_SUPPORT
332 332
333 } } // namespace v8::internal 333 } } // namespace v8::internal
334 334
335 #endif // V8_TARGET_ARCH_MIPS 335 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698