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

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

Issue 246643014: CodeStubs contain their corresponding Isolate* now. (part 1) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Feedback. Rebased. 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/hydrogen.cc ('k') | src/ia32/code-stubs-ia32.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 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(masm->isolate(), NO_CALL_FUNCTION_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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 1464
1465 __ bind(&ok); 1465 __ bind(&ok);
1466 __ ret(0); 1466 __ ret(0);
1467 } 1467 }
1468 1468
1469 #undef __ 1469 #undef __
1470 } 1470 }
1471 } // namespace v8::internal 1471 } // namespace v8::internal
1472 1472
1473 #endif // V8_TARGET_ARCH_IA32 1473 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/code-stubs-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698