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

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

Issue 3156028: Change code pointer in function objects to a pointer to the first... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 4 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/codegen-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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 1066
1067 // 5b. Get the code to call from the function and check that the number of 1067 // 5b. Get the code to call from the function and check that the number of
1068 // expected arguments matches what we're providing. If so, jump 1068 // expected arguments matches what we're providing. If so, jump
1069 // (tail-call) to the code in register edx without checking arguments. 1069 // (tail-call) to the code in register edx without checking arguments.
1070 // r0: actual number of arguments 1070 // r0: actual number of arguments
1071 // r1: function 1071 // r1: function
1072 __ ldr(r3, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); 1072 __ ldr(r3, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset));
1073 __ ldr(r2, 1073 __ ldr(r2,
1074 FieldMemOperand(r3, SharedFunctionInfo::kFormalParameterCountOffset)); 1074 FieldMemOperand(r3, SharedFunctionInfo::kFormalParameterCountOffset));
1075 __ mov(r2, Operand(r2, ASR, kSmiTagSize)); 1075 __ mov(r2, Operand(r2, ASR, kSmiTagSize));
1076 __ ldr(r3, FieldMemOperand(r1, JSFunction::kCodeOffset)); 1076 __ ldr(r3, FieldMemOperand(r1, JSFunction::kCodeEntryOffset));
1077 __ add(r3, r3, Operand(Code::kHeaderSize - kHeapObjectTag));
1078 __ cmp(r2, r0); // Check formal and actual parameter counts. 1077 __ cmp(r2, r0); // Check formal and actual parameter counts.
1079 __ Jump(Handle<Code>(builtin(ArgumentsAdaptorTrampoline)), 1078 __ Jump(Handle<Code>(builtin(ArgumentsAdaptorTrampoline)),
1080 RelocInfo::CODE_TARGET, ne); 1079 RelocInfo::CODE_TARGET, ne);
1081 1080
1082 ParameterCount expected(0); 1081 ParameterCount expected(0);
1083 __ InvokeCode(r3, expected, expected, JUMP_FUNCTION); 1082 __ InvokeCode(r3, expected, expected, JUMP_FUNCTION);
1084 } 1083 }
1085 1084
1086 1085
1087 void Builtins::Generate_FunctionApply(MacroAssembler* masm) { 1086 void Builtins::Generate_FunctionApply(MacroAssembler* masm) {
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 __ bind(&dont_adapt_arguments); 1333 __ bind(&dont_adapt_arguments);
1335 __ Jump(r3); 1334 __ Jump(r3);
1336 } 1335 }
1337 1336
1338 1337
1339 #undef __ 1338 #undef __
1340 1339
1341 } } // namespace v8::internal 1340 } } // namespace v8::internal
1342 1341
1343 #endif // V8_TARGET_ARCH_ARM 1342 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698