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

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

Issue 9298014: MIPS: Implement target cache for constructor calls. (Closed)
Patch Set: Created 8 years, 11 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/full-codegen-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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // -- a2: name 240 // -- a2: name
241 // ----------------------------------- 241 // -----------------------------------
242 Generate_DebugBreakCallHelper(masm, a2.bit(), 0); 242 Generate_DebugBreakCallHelper(masm, a2.bit(), 0);
243 } 243 }
244 244
245 245
246 void Debug::GenerateConstructCallDebugBreak(MacroAssembler* masm) { 246 void Debug::GenerateConstructCallDebugBreak(MacroAssembler* masm) {
247 // Calling convention for construct call (from builtins-mips.cc). 247 // Calling convention for construct call (from builtins-mips.cc).
248 // -- a0 : number of arguments (not smi) 248 // -- a0 : number of arguments (not smi)
249 // -- a1 : constructor function 249 // -- a1 : constructor function
250 Generate_DebugBreakCallHelper(masm, a1.bit(), a0.bit()); 250 // -- a2 : cache cell for call target
251 Generate_DebugBreakCallHelper(masm, a1.bit() | a2.bit(), a0.bit());
251 } 252 }
252 253
253 254
254 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { 255 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) {
255 // In places other than IC call sites it is expected that v0 is TOS which 256 // In places other than IC call sites it is expected that v0 is TOS which
256 // is an object - this is not generally the case so this should be used with 257 // is an object - this is not generally the case so this should be used with
257 // care. 258 // care.
258 Generate_DebugBreakCallHelper(masm, v0.bit(), 0); 259 Generate_DebugBreakCallHelper(masm, v0.bit(), 0);
259 } 260 }
260 261
261 262
262 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { 263 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) {
264 // Register state for CallFunctionStub (from code-stubs-mips.cc).
263 // ----------- S t a t e ------------- 265 // ----------- S t a t e -------------
264 // -- a1 : function 266 // -- a1 : function
265 // ----------------------------------- 267 // -----------------------------------
266 Generate_DebugBreakCallHelper(masm, a1.bit(), 0); 268 Generate_DebugBreakCallHelper(masm, a1.bit(), 0);
267 } 269 }
268 270
269 271
270 void Debug::GenerateSlot(MacroAssembler* masm) { 272 void Debug::GenerateSlot(MacroAssembler* masm) {
271 // Generate enough nop's to make space for a call instruction. Avoid emitting 273 // Generate enough nop's to make space for a call instruction. Avoid emitting
272 // the trampoline pool in the debug break slot code. 274 // the trampoline pool in the debug break slot code.
(...skipping 29 matching lines...) Expand all
302 const bool Debug::kFrameDropperSupported = false; 304 const bool Debug::kFrameDropperSupported = false;
303 305
304 #undef __ 306 #undef __
305 307
306 308
307 #endif // ENABLE_DEBUGGER_SUPPORT 309 #endif // ENABLE_DEBUGGER_SUPPORT
308 310
309 } } // namespace v8::internal 311 } } // namespace v8::internal
310 312
311 #endif // V8_TARGET_ARCH_MIPS 313 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698