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

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

Issue 23756009: remove getcurrent from stubs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: reorder isolate parameter Created 7 years, 3 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/runtime.cc ('k') | src/x64/code-stubs-x64.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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 // For now, we are relying on the fact that make_code_young doesn't do any 593 // For now, we are relying on the fact that make_code_young doesn't do any
594 // garbage collection which allows us to save/restore the registers without 594 // garbage collection which allows us to save/restore the registers without
595 // worrying about which of them contain pointers. We also don't build an 595 // worrying about which of them contain pointers. We also don't build an
596 // internal frame to make the code faster, since we shouldn't have to do stack 596 // internal frame to make the code faster, since we shouldn't have to do stack
597 // crawls in MakeCodeYoung. This seems a bit fragile. 597 // crawls in MakeCodeYoung. This seems a bit fragile.
598 598
599 // Re-execute the code that was patched back to the young age when 599 // Re-execute the code that was patched back to the young age when
600 // the stub returns. 600 // the stub returns.
601 __ subq(Operand(rsp, 0), Immediate(5)); 601 __ subq(Operand(rsp, 0), Immediate(5));
602 __ Pushad(); 602 __ Pushad();
603 __ movq(arg_reg_2,
604 ExternalReference::isolate_address(masm->isolate()));
603 __ movq(arg_reg_1, Operand(rsp, kNumSafepointRegisters * kPointerSize)); 605 __ movq(arg_reg_1, Operand(rsp, kNumSafepointRegisters * kPointerSize));
604 { // NOLINT 606 { // NOLINT
605 FrameScope scope(masm, StackFrame::MANUAL); 607 FrameScope scope(masm, StackFrame::MANUAL);
606 __ PrepareCallCFunction(1); 608 __ PrepareCallCFunction(1);
607 __ CallCFunction( 609 __ CallCFunction(
608 ExternalReference::get_make_code_young_function(masm->isolate()), 1); 610 ExternalReference::get_make_code_young_function(masm->isolate()), 1);
609 } 611 }
610 __ Popad(); 612 __ Popad();
611 __ ret(0); 613 __ ret(0);
612 } 614 }
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 // And "return" to the OSR entry point of the function. 1401 // And "return" to the OSR entry point of the function.
1400 __ ret(0); 1402 __ ret(0);
1401 } 1403 }
1402 1404
1403 1405
1404 #undef __ 1406 #undef __
1405 1407
1406 } } // namespace v8::internal 1408 } } // namespace v8::internal
1407 1409
1408 #endif // V8_TARGET_ARCH_X64 1410 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698