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

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

Issue 3197010: Version 2.3.10... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
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 | « src/version.cc ('k') | src/x64/codegen-x64.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 __ bind(&function); 303 __ bind(&function);
304 } 304 }
305 305
306 // 5b. Get the code to call from the function and check that the number of 306 // 5b. Get the code to call from the function and check that the number of
307 // expected arguments matches what we're providing. If so, jump 307 // expected arguments matches what we're providing. If so, jump
308 // (tail-call) to the code in register edx without checking arguments. 308 // (tail-call) to the code in register edx without checking arguments.
309 __ movq(rdx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset)); 309 __ movq(rdx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset));
310 __ movsxlq(rbx, 310 __ movsxlq(rbx,
311 FieldOperand(rdx, 311 FieldOperand(rdx,
312 SharedFunctionInfo::kFormalParameterCountOffset)); 312 SharedFunctionInfo::kFormalParameterCountOffset));
313 __ movq(rdx, FieldOperand(rdi, JSFunction::kCodeOffset)); 313 __ movq(rdx, FieldOperand(rdi, JSFunction::kCodeEntryOffset));
314 __ lea(rdx, FieldOperand(rdx, Code::kHeaderSize));
315 __ cmpq(rax, rbx); 314 __ cmpq(rax, rbx);
316 __ j(not_equal, 315 __ j(not_equal,
317 Handle<Code>(builtin(ArgumentsAdaptorTrampoline)), 316 Handle<Code>(builtin(ArgumentsAdaptorTrampoline)),
318 RelocInfo::CODE_TARGET); 317 RelocInfo::CODE_TARGET);
319 318
320 ParameterCount expected(0); 319 ParameterCount expected(0);
321 __ InvokeCode(rdx, expected, expected, JUMP_FUNCTION); 320 __ InvokeCode(rdx, expected, expected, JUMP_FUNCTION);
322 } 321 }
323 322
324 323
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 __ LeaveInternalFrame(); 1306 __ LeaveInternalFrame();
1308 1307
1309 // Do a tail-call of the compiled function. 1308 // Do a tail-call of the compiled function.
1310 __ lea(rcx, FieldOperand(rax, Code::kHeaderSize)); 1309 __ lea(rcx, FieldOperand(rax, Code::kHeaderSize));
1311 __ jmp(rcx); 1310 __ jmp(rcx);
1312 } 1311 }
1313 1312
1314 } } // namespace v8::internal 1313 } } // namespace v8::internal
1315 1314
1316 #endif // V8_TARGET_ARCH_X64 1315 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | src/x64/codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698