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

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

Issue 3141047: Cleanup the way the debugger stores live registers when entering at a break... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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 | src/arm/debug-arm.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2684 matching lines...) Expand 10 before | Expand all | Expand 10 after
2695 STATIC_ASSERT(((kFailureTag + 1) & kFailureTagMask) == 0); 2695 STATIC_ASSERT(((kFailureTag + 1) & kFailureTagMask) == 0);
2696 // Lower 2 bits of r2 are 0 iff r0 has failure tag. 2696 // Lower 2 bits of r2 are 0 iff r0 has failure tag.
2697 __ add(r2, r0, Operand(1)); 2697 __ add(r2, r0, Operand(1));
2698 __ tst(r2, Operand(kFailureTagMask)); 2698 __ tst(r2, Operand(kFailureTagMask));
2699 __ b(eq, &failure_returned); 2699 __ b(eq, &failure_returned);
2700 2700
2701 // Exit C frame and return. 2701 // Exit C frame and return.
2702 // r0:r1: result 2702 // r0:r1: result
2703 // sp: stack pointer 2703 // sp: stack pointer
2704 // fp: frame pointer 2704 // fp: frame pointer
2705 __ LeaveExitFrame(mode_); 2705 __ LeaveExitFrame();
2706 2706
2707 // check if we should retry or throw exception 2707 // check if we should retry or throw exception
2708 Label retry; 2708 Label retry;
2709 __ bind(&failure_returned); 2709 __ bind(&failure_returned);
2710 STATIC_ASSERT(Failure::RETRY_AFTER_GC == 0); 2710 STATIC_ASSERT(Failure::RETRY_AFTER_GC == 0);
2711 __ tst(r0, Operand(((1 << kFailureTypeTagSize) - 1) << kFailureTagSize)); 2711 __ tst(r0, Operand(((1 << kFailureTypeTagSize) - 1) << kFailureTagSize));
2712 __ b(eq, &retry); 2712 __ b(eq, &retry);
2713 2713
2714 // Special handling of out of memory exceptions. 2714 // Special handling of out of memory exceptions.
2715 Failure* out_of_memory = Failure::OutOfMemoryException(); 2715 Failure* out_of_memory = Failure::OutOfMemoryException();
(...skipping 28 matching lines...) Expand all
2744 // cp: current context (C callee-saved) 2744 // cp: current context (C callee-saved)
2745 2745
2746 // Result returned in r0 or r0+r1 by default. 2746 // Result returned in r0 or r0+r1 by default.
2747 2747
2748 // NOTE: Invocations of builtins may return failure objects 2748 // NOTE: Invocations of builtins may return failure objects
2749 // instead of a proper result. The builtin entry handles 2749 // instead of a proper result. The builtin entry handles
2750 // this by performing a garbage collection and retrying the 2750 // this by performing a garbage collection and retrying the
2751 // builtin once. 2751 // builtin once.
2752 2752
2753 // Enter the exit frame that transitions from JavaScript to C++. 2753 // Enter the exit frame that transitions from JavaScript to C++.
2754 __ EnterExitFrame(mode_); 2754 __ EnterExitFrame();
2755 2755
2756 // r4: number of arguments (C callee-saved) 2756 // r4: number of arguments (C callee-saved)
2757 // r5: pointer to builtin function (C callee-saved) 2757 // r5: pointer to builtin function (C callee-saved)
2758 // r6: pointer to first argument (C callee-saved) 2758 // r6: pointer to first argument (C callee-saved)
2759 2759
2760 Label throw_normal_exception; 2760 Label throw_normal_exception;
2761 Label throw_termination_exception; 2761 Label throw_termination_exception;
2762 Label throw_out_of_memory_exception; 2762 Label throw_out_of_memory_exception;
2763 2763
2764 // Call into the runtime system. 2764 // Call into the runtime system.
(...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after
4769 __ bind(&string_add_runtime); 4769 __ bind(&string_add_runtime);
4770 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); 4770 __ TailCallRuntime(Runtime::kStringAdd, 2, 1);
4771 } 4771 }
4772 4772
4773 4773
4774 #undef __ 4774 #undef __
4775 4775
4776 } } // namespace v8::internal 4776 } } // namespace v8::internal
4777 4777
4778 #endif // V8_TARGET_ARCH_ARM 4778 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/debug-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698