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

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

Issue 4015: Remove debugging code that snuck in with the ARM calling convention changes.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 418
419 __ ldr(r0, MemOperand(fp, kFunctionOffset)); // get the function 419 __ ldr(r0, MemOperand(fp, kFunctionOffset)); // get the function
420 __ push(r0); 420 __ push(r0);
421 __ ldr(r0, MemOperand(fp, kArgsOffset)); // get the args array 421 __ ldr(r0, MemOperand(fp, kArgsOffset)); // get the args array
422 __ push(r0); 422 __ push(r0);
423 __ InvokeBuiltin(Builtins::APPLY_PREPARE, CALL_JS); 423 __ InvokeBuiltin(Builtins::APPLY_PREPARE, CALL_JS);
424 424
425 // Eagerly check for stack-overflow before starting to push the arguments. 425 // Eagerly check for stack-overflow before starting to push the arguments.
426 // r0: number of arguments 426 // r0: number of arguments
427 Label okay; 427 Label okay;
428 { Label L;
429 __ mov(r1, Operand(391864 << kSmiTagSize));
430 __ cmp(r0, r1);
431 __ b(cc, &L);
432 __ bind(&L);
433 }
434 ExternalReference stack_guard_limit_address = 428 ExternalReference stack_guard_limit_address =
435 ExternalReference::address_of_stack_guard_limit(); 429 ExternalReference::address_of_stack_guard_limit();
436 __ mov(r2, Operand(stack_guard_limit_address)); 430 __ mov(r2, Operand(stack_guard_limit_address));
437 __ ldr(r2, MemOperand(r2)); 431 __ ldr(r2, MemOperand(r2));
438 __ sub(r2, sp, r2); 432 __ sub(r2, sp, r2);
439 __ sub(r2, r2, Operand(3 * kPointerSize)); // limit, index, receiver 433 __ sub(r2, r2, Operand(3 * kPointerSize)); // limit, index, receiver
440 434
441 __ cmp(r2, Operand(r0, LSL, kPointerSizeLog2 - kSmiTagSize)); 435 __ cmp(r2, Operand(r0, LSL, kPointerSizeLog2 - kSmiTagSize));
442 __ b(hi, &okay); 436 __ b(hi, &okay);
443 437
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 } 823 }
830 824
831 void Builtins::Generate_StubNoRegisters_DebugBreak(MacroAssembler* masm) { 825 void Builtins::Generate_StubNoRegisters_DebugBreak(MacroAssembler* masm) {
832 // Generate nothing as CodeStub CallFunction is not used on ARM. 826 // Generate nothing as CodeStub CallFunction is not used on ARM.
833 } 827 }
834 828
835 829
836 #undef __ 830 #undef __
837 831
838 } } // namespace v8::internal 832 } } // namespace v8::internal
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