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

Side by Side Diff: src/arm64/builtins-arm64.cc

Issue 252483002: ARM64: small fixes for ArgumentAdaptorTrampoline after r20751. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 // -- x2 : expected number of arguments 1408 // -- x2 : expected number of arguments
1409 // ----------------------------------- 1409 // -----------------------------------
1410 // Check the stack for overflow. 1410 // Check the stack for overflow.
1411 // We are not trying to catch interruptions (e.g. debug break and 1411 // We are not trying to catch interruptions (e.g. debug break and
1412 // preemption) here, so the "real stack limit" is checked. 1412 // preemption) here, so the "real stack limit" is checked.
1413 Label enough_stack_space; 1413 Label enough_stack_space;
1414 __ LoadRoot(x10, Heap::kRealStackLimitRootIndex); 1414 __ LoadRoot(x10, Heap::kRealStackLimitRootIndex);
1415 // Make x10 the space we have left. The stack might already be overflowed 1415 // Make x10 the space we have left. The stack might already be overflowed
1416 // here which will cause x10 to become negative. 1416 // here which will cause x10 to become negative.
1417 __ Sub(x10, jssp, x10); 1417 __ Sub(x10, jssp, x10);
1418 __ Mov(x11, jssp);
1419 // Check if the arguments will overflow the stack. 1418 // Check if the arguments will overflow the stack.
1420 __ Cmp(x10, Operand(x2, LSL, kPointerSizeLog2)); 1419 __ Cmp(x10, Operand(x2, LSL, kPointerSizeLog2));
1421 __ B(le, stack_overflow); 1420 __ B(le, stack_overflow);
1422 } 1421 }
1423 1422
1424 1423
1425 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { 1424 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) {
1426 __ SmiTag(x10, x0); 1425 __ SmiTag(x10, x0);
1427 __ Mov(x11, Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)); 1426 __ Mov(x11, Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR));
1428 __ Push(lr, fp); 1427 __ Push(lr, fp);
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 1575
1577 // Call the entry point without adapting the arguments. 1576 // Call the entry point without adapting the arguments.
1578 __ Bind(&dont_adapt_arguments); 1577 __ Bind(&dont_adapt_arguments);
1579 __ Jump(code_entry); 1578 __ Jump(code_entry);
1580 1579
1581 __ Bind(&stack_overflow); 1580 __ Bind(&stack_overflow);
1582 { 1581 {
1583 FrameScope frame(masm, StackFrame::MANUAL); 1582 FrameScope frame(masm, StackFrame::MANUAL);
1584 EnterArgumentsAdaptorFrame(masm); 1583 EnterArgumentsAdaptorFrame(masm);
1585 __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION); 1584 __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION);
1586 __ Brk(0); 1585 __ Unreachable();
1587 } 1586 }
1588 } 1587 }
1589 1588
1590 1589
1591 #undef __ 1590 #undef __
1592 1591
1593 } } // namespace v8::internal 1592 } } // namespace v8::internal
1594 1593
1595 #endif // V8_TARGET_ARCH_ARM 1594 #endif // V8_TARGET_ARCH_ARM
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