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

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

Issue 7350014: Remove the ability to compile without logging and profiling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 9 years, 5 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 | « src/api.cc ('k') | src/arm/codegen-arm.h » ('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 3544 matching lines...) Expand 10 before | Expand all | Expand 10 after
3555 __ mov(r7, Operand(Smi::FromInt(marker))); 3555 __ mov(r7, Operand(Smi::FromInt(marker)));
3556 __ mov(r6, Operand(Smi::FromInt(marker))); 3556 __ mov(r6, Operand(Smi::FromInt(marker)));
3557 __ mov(r5, 3557 __ mov(r5,
3558 Operand(ExternalReference(Isolate::k_c_entry_fp_address, isolate))); 3558 Operand(ExternalReference(Isolate::k_c_entry_fp_address, isolate)));
3559 __ ldr(r5, MemOperand(r5)); 3559 __ ldr(r5, MemOperand(r5));
3560 __ Push(r8, r7, r6, r5); 3560 __ Push(r8, r7, r6, r5);
3561 3561
3562 // Setup frame pointer for the frame to be pushed. 3562 // Setup frame pointer for the frame to be pushed.
3563 __ add(fp, sp, Operand(-EntryFrameConstants::kCallerFPOffset)); 3563 __ add(fp, sp, Operand(-EntryFrameConstants::kCallerFPOffset));
3564 3564
3565 #ifdef ENABLE_LOGGING_AND_PROFILING
3566 // If this is the outermost JS call, set js_entry_sp value. 3565 // If this is the outermost JS call, set js_entry_sp value.
3567 Label non_outermost_js; 3566 Label non_outermost_js;
3568 ExternalReference js_entry_sp(Isolate::k_js_entry_sp_address, isolate); 3567 ExternalReference js_entry_sp(Isolate::k_js_entry_sp_address, isolate);
3569 __ mov(r5, Operand(ExternalReference(js_entry_sp))); 3568 __ mov(r5, Operand(ExternalReference(js_entry_sp)));
3570 __ ldr(r6, MemOperand(r5)); 3569 __ ldr(r6, MemOperand(r5));
3571 __ cmp(r6, Operand(0)); 3570 __ cmp(r6, Operand(0));
3572 __ b(ne, &non_outermost_js); 3571 __ b(ne, &non_outermost_js);
3573 __ str(fp, MemOperand(r5)); 3572 __ str(fp, MemOperand(r5));
3574 __ mov(ip, Operand(Smi::FromInt(StackFrame::OUTERMOST_JSENTRY_FRAME))); 3573 __ mov(ip, Operand(Smi::FromInt(StackFrame::OUTERMOST_JSENTRY_FRAME)));
3575 Label cont; 3574 Label cont;
3576 __ b(&cont); 3575 __ b(&cont);
3577 __ bind(&non_outermost_js); 3576 __ bind(&non_outermost_js);
3578 __ mov(ip, Operand(Smi::FromInt(StackFrame::INNER_JSENTRY_FRAME))); 3577 __ mov(ip, Operand(Smi::FromInt(StackFrame::INNER_JSENTRY_FRAME)));
3579 __ bind(&cont); 3578 __ bind(&cont);
3580 __ push(ip); 3579 __ push(ip);
3581 #endif
3582 3580
3583 // Call a faked try-block that does the invoke. 3581 // Call a faked try-block that does the invoke.
3584 __ bl(&invoke); 3582 __ bl(&invoke);
3585 3583
3586 // Caught exception: Store result (exception) in the pending 3584 // Caught exception: Store result (exception) in the pending
3587 // exception field in the JSEnv and return a failure sentinel. 3585 // exception field in the JSEnv and return a failure sentinel.
3588 // Coming in here the fp will be invalid because the PushTryHandler below 3586 // Coming in here the fp will be invalid because the PushTryHandler below
3589 // sets it to 0 to signal the existence of the JSEntry frame. 3587 // sets it to 0 to signal the existence of the JSEntry frame.
3590 __ mov(ip, Operand(ExternalReference(Isolate::k_pending_exception_address, 3588 __ mov(ip, Operand(ExternalReference(Isolate::k_pending_exception_address,
3591 isolate))); 3589 isolate)));
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
3632 // Branch and link to JSEntryTrampoline. We don't use the double underscore 3630 // Branch and link to JSEntryTrampoline. We don't use the double underscore
3633 // macro for the add instruction because we don't want the coverage tool 3631 // macro for the add instruction because we don't want the coverage tool
3634 // inserting instructions here after we read the pc. 3632 // inserting instructions here after we read the pc.
3635 __ mov(lr, Operand(pc)); 3633 __ mov(lr, Operand(pc));
3636 masm->add(pc, ip, Operand(Code::kHeaderSize - kHeapObjectTag)); 3634 masm->add(pc, ip, Operand(Code::kHeaderSize - kHeapObjectTag));
3637 3635
3638 // Unlink this frame from the handler chain. 3636 // Unlink this frame from the handler chain.
3639 __ PopTryHandler(); 3637 __ PopTryHandler();
3640 3638
3641 __ bind(&exit); // r0 holds result 3639 __ bind(&exit); // r0 holds result
3642 #ifdef ENABLE_LOGGING_AND_PROFILING
3643 // Check if the current stack frame is marked as the outermost JS frame. 3640 // Check if the current stack frame is marked as the outermost JS frame.
3644 Label non_outermost_js_2; 3641 Label non_outermost_js_2;
3645 __ pop(r5); 3642 __ pop(r5);
3646 __ cmp(r5, Operand(Smi::FromInt(StackFrame::OUTERMOST_JSENTRY_FRAME))); 3643 __ cmp(r5, Operand(Smi::FromInt(StackFrame::OUTERMOST_JSENTRY_FRAME)));
3647 __ b(ne, &non_outermost_js_2); 3644 __ b(ne, &non_outermost_js_2);
3648 __ mov(r6, Operand(0)); 3645 __ mov(r6, Operand(0));
3649 __ mov(r5, Operand(ExternalReference(js_entry_sp))); 3646 __ mov(r5, Operand(ExternalReference(js_entry_sp)));
3650 __ str(r6, MemOperand(r5)); 3647 __ str(r6, MemOperand(r5));
3651 __ bind(&non_outermost_js_2); 3648 __ bind(&non_outermost_js_2);
3652 #endif
3653 3649
3654 // Restore the top frame descriptors from the stack. 3650 // Restore the top frame descriptors from the stack.
3655 __ pop(r3); 3651 __ pop(r3);
3656 __ mov(ip, 3652 __ mov(ip,
3657 Operand(ExternalReference(Isolate::k_c_entry_fp_address, isolate))); 3653 Operand(ExternalReference(Isolate::k_c_entry_fp_address, isolate)));
3658 __ str(r3, MemOperand(ip)); 3654 __ str(r3, MemOperand(ip));
3659 3655
3660 // Reset the stack to the callee saved registers. 3656 // Reset the stack to the callee saved registers.
3661 __ add(sp, sp, Operand(-EntryFrameConstants::kCallerFPOffset)); 3657 __ add(sp, sp, Operand(-EntryFrameConstants::kCallerFPOffset));
3662 3658
(...skipping 2924 matching lines...) Expand 10 before | Expand all | Expand 10 after
6587 __ mov(result, Operand(0)); 6583 __ mov(result, Operand(0));
6588 __ Ret(); 6584 __ Ret();
6589 } 6585 }
6590 6586
6591 6587
6592 #undef __ 6588 #undef __
6593 6589
6594 } } // namespace v8::internal 6590 } } // namespace v8::internal
6595 6591
6596 #endif // V8_TARGET_ARCH_ARM 6592 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/arm/codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698