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

Side by Side Diff: src/mips64/code-stubs-mips64.cc

Issue 505823003: MIPS: Encode CEntryStub properties in the minor key. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 // NOTE: s0-s2 hold the arguments of this function instead of a0-a2. 1473 // NOTE: s0-s2 hold the arguments of this function instead of a0-a2.
1474 // The reason for this is that these arguments would need to be saved anyway 1474 // The reason for this is that these arguments would need to be saved anyway
1475 // so it's faster to set them up directly. 1475 // so it's faster to set them up directly.
1476 // See MacroAssembler::PrepareCEntryArgs and PrepareCEntryFunction. 1476 // See MacroAssembler::PrepareCEntryArgs and PrepareCEntryFunction.
1477 1477
1478 // Compute the argv pointer in a callee-saved register. 1478 // Compute the argv pointer in a callee-saved register.
1479 __ Daddu(s1, sp, s1); 1479 __ Daddu(s1, sp, s1);
1480 1480
1481 // Enter the exit frame that transitions from JavaScript to C++. 1481 // Enter the exit frame that transitions from JavaScript to C++.
1482 FrameScope scope(masm, StackFrame::MANUAL); 1482 FrameScope scope(masm, StackFrame::MANUAL);
1483 __ EnterExitFrame(save_doubles_); 1483 __ EnterExitFrame(save_doubles());
1484 1484
1485 // s0: number of arguments including receiver (C callee-saved) 1485 // s0: number of arguments including receiver (C callee-saved)
1486 // s1: pointer to first argument (C callee-saved) 1486 // s1: pointer to first argument (C callee-saved)
1487 // s2: pointer to builtin function (C callee-saved) 1487 // s2: pointer to builtin function (C callee-saved)
1488 1488
1489 // Prepare arguments for C routine. 1489 // Prepare arguments for C routine.
1490 // a0 = argc 1490 // a0 = argc
1491 __ mov(a0, s0); 1491 __ mov(a0, s0);
1492 // a1 = argv (set in the delay slot after find_ra below). 1492 // a1 = argv (set in the delay slot after find_ra below).
1493 1493
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 __ Branch(&okay, eq, a4, Operand(a2)); 1560 __ Branch(&okay, eq, a4, Operand(a2));
1561 __ stop("Unexpected pending exception"); 1561 __ stop("Unexpected pending exception");
1562 __ bind(&okay); 1562 __ bind(&okay);
1563 } 1563 }
1564 1564
1565 // Exit C frame and return. 1565 // Exit C frame and return.
1566 // v0:v1: result 1566 // v0:v1: result
1567 // sp: stack pointer 1567 // sp: stack pointer
1568 // fp: frame pointer 1568 // fp: frame pointer
1569 // s0: still holds argc (callee-saved). 1569 // s0: still holds argc (callee-saved).
1570 __ LeaveExitFrame(save_doubles_, s0, true, EMIT_RETURN); 1570 __ LeaveExitFrame(save_doubles(), s0, true, EMIT_RETURN);
1571 1571
1572 // Handling of exception. 1572 // Handling of exception.
1573 __ bind(&exception_returned); 1573 __ bind(&exception_returned);
1574 1574
1575 // Retrieve the pending exception. 1575 // Retrieve the pending exception.
1576 __ li(a2, Operand(pending_exception_address)); 1576 __ li(a2, Operand(pending_exception_address));
1577 __ ld(v0, MemOperand(a2)); 1577 __ ld(v0, MemOperand(a2));
1578 1578
1579 // Clear the pending exception. 1579 // Clear the pending exception.
1580 __ li(a3, Operand(isolate()->factory()->the_hole_value())); 1580 __ li(a3, Operand(isolate()->factory()->the_hole_value()));
(...skipping 3742 matching lines...) Expand 10 before | Expand all | Expand 10 after
5323 MemOperand(fp, 6 * kPointerSize), 5323 MemOperand(fp, 6 * kPointerSize),
5324 NULL); 5324 NULL);
5325 } 5325 }
5326 5326
5327 5327
5328 #undef __ 5328 #undef __
5329 5329
5330 } } // namespace v8::internal 5330 } } // namespace v8::internal
5331 5331
5332 #endif // V8_TARGET_ARCH_MIPS64 5332 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698