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

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

Issue 224903005: Reland "create a function call IC" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments. Created 6 years, 8 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/full-codegen.h ('k') | src/ia32/code-stubs-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 __ j(not_equal, &loop); 533 __ j(not_equal, &loop);
534 534
535 // Get the function from the stack and call it. 535 // Get the function from the stack and call it.
536 // kPointerSize for the receiver. 536 // kPointerSize for the receiver.
537 __ mov(edi, Operand(esp, eax, times_4, kPointerSize)); 537 __ mov(edi, Operand(esp, eax, times_4, kPointerSize));
538 538
539 // Invoke the code. 539 // Invoke the code.
540 if (is_construct) { 540 if (is_construct) {
541 // No type feedback cell is available 541 // No type feedback cell is available
542 __ mov(ebx, masm->isolate()->factory()->undefined_value()); 542 __ mov(ebx, masm->isolate()->factory()->undefined_value());
543 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); 543 CallConstructStub stub(NO_CALL_CONSTRUCTOR_FLAGS);
544 __ CallStub(&stub); 544 __ CallStub(&stub);
545 } else { 545 } else {
546 ParameterCount actual(eax); 546 ParameterCount actual(eax);
547 __ InvokeFunction(edi, actual, CALL_FUNCTION, 547 __ InvokeFunction(edi, actual, CALL_FUNCTION,
548 NullCallWrapper()); 548 NullCallWrapper());
549 } 549 }
550 550
551 // Exit the internal frame. Notice that this also removes the empty. 551 // Exit the internal frame. Notice that this also removes the empty.
552 // context and the function left on the stack by the code 552 // context and the function left on the stack by the code
553 // invocation. 553 // invocation.
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 1426
1427 __ bind(&ok); 1427 __ bind(&ok);
1428 __ ret(0); 1428 __ ret(0);
1429 } 1429 }
1430 1430
1431 #undef __ 1431 #undef __
1432 } 1432 }
1433 } // namespace v8::internal 1433 } // namespace v8::internal
1434 1434
1435 #endif // V8_TARGET_ARCH_IA32 1435 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698