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

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

Issue 8344079: Shave 39% from snapshot size. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 2 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/deoptimizer-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 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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 __ mov(cp, Operand(0, RelocInfo::NONE)); 1020 __ mov(cp, Operand(0, RelocInfo::NONE));
1021 1021
1022 // Enter an internal frame. 1022 // Enter an internal frame.
1023 { 1023 {
1024 FrameScope scope(masm, StackFrame::INTERNAL); 1024 FrameScope scope(masm, StackFrame::INTERNAL);
1025 1025
1026 // Set up the context from the function argument. 1026 // Set up the context from the function argument.
1027 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); 1027 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset));
1028 1028
1029 // Set up the roots register. 1029 // Set up the roots register.
1030 ExternalReference roots_address = 1030 ExternalReference roots_array_start =
1031 ExternalReference::roots_address(masm->isolate()); 1031 ExternalReference::roots_array_start(masm->isolate());
1032 __ mov(r10, Operand(roots_address)); 1032 __ mov(r10, Operand(roots_array_start));
1033 1033
1034 // Push the function and the receiver onto the stack. 1034 // Push the function and the receiver onto the stack.
1035 __ push(r1); 1035 __ push(r1);
1036 __ push(r2); 1036 __ push(r2);
1037 1037
1038 // Copy arguments to the stack in a loop. 1038 // Copy arguments to the stack in a loop.
1039 // r1: function 1039 // r1: function
1040 // r3: argc 1040 // r3: argc
1041 // r4: argv, i.e. points to first arg 1041 // r4: argv, i.e. points to first arg
1042 Label loop, entry; 1042 Label loop, entry;
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
1718 __ bind(&dont_adapt_arguments); 1718 __ bind(&dont_adapt_arguments);
1719 __ Jump(r3); 1719 __ Jump(r3);
1720 } 1720 }
1721 1721
1722 1722
1723 #undef __ 1723 #undef __
1724 1724
1725 } } // namespace v8::internal 1725 } } // namespace v8::internal
1726 1726
1727 #endif // V8_TARGET_ARCH_ARM 1727 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/deoptimizer-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698