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

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

Issue 247373002: CallICStub with a "never patch" approach until customization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE + code size multiplier. Created 6 years, 7 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "codegen.h" 9 #include "codegen.h"
10 #include "deoptimizer.h" 10 #include "deoptimizer.h"
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 __ j(not_equal, &loop); 508 __ j(not_equal, &loop);
509 509
510 // Get the function from the stack and call it. 510 // Get the function from the stack and call it.
511 // kPointerSize for the receiver. 511 // kPointerSize for the receiver.
512 __ mov(edi, Operand(esp, eax, times_4, kPointerSize)); 512 __ mov(edi, Operand(esp, eax, times_4, kPointerSize));
513 513
514 // Invoke the code. 514 // Invoke the code.
515 if (is_construct) { 515 if (is_construct) {
516 // No type feedback cell is available 516 // No type feedback cell is available
517 __ mov(ebx, masm->isolate()->factory()->undefined_value()); 517 __ mov(ebx, masm->isolate()->factory()->undefined_value());
518 CallConstructStub stub(masm->isolate(), NO_CALL_FUNCTION_FLAGS); 518 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS);
519 __ CallStub(&stub); 519 __ CallStub(&stub);
520 } else { 520 } else {
521 ParameterCount actual(eax); 521 ParameterCount actual(eax);
522 __ InvokeFunction(edi, actual, CALL_FUNCTION, 522 __ InvokeFunction(edi, actual, CALL_FUNCTION,
523 NullCallWrapper()); 523 NullCallWrapper());
524 } 524 }
525 525
526 // Exit the internal frame. Notice that this also removes the empty. 526 // Exit the internal frame. Notice that this also removes the empty.
527 // context and the function left on the stack by the code 527 // context and the function left on the stack by the code
528 // invocation. 528 // invocation.
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 1439
1440 __ bind(&ok); 1440 __ bind(&ok);
1441 __ ret(0); 1441 __ ret(0);
1442 } 1442 }
1443 1443
1444 #undef __ 1444 #undef __
1445 } 1445 }
1446 } // namespace v8::internal 1446 } // namespace v8::internal
1447 1447
1448 #endif // V8_TARGET_ARCH_IA32 1448 #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