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

Side by Side Diff: src/x64/stub-cache-x64.cc

Issue 543106: Fix some of my earlier typos. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 11 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/x64/ic-x64.cc ('k') | no next file » | 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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 JSFunction* function, 681 JSFunction* function,
682 String* name, 682 String* name,
683 StubCompiler::CheckType check) { 683 StubCompiler::CheckType check) {
684 // ----------- S t a t e ------------- 684 // ----------- S t a t e -------------
685 // ----------------------------------- 685 // -----------------------------------
686 // rsp[0] return address 686 // rsp[0] return address
687 // rsp[8] argument argc 687 // rsp[8] argument argc
688 // rsp[16] argument argc - 1 688 // rsp[16] argument argc - 1
689 // ... 689 // ...
690 // rsp[argc * 8] argument 1 690 // rsp[argc * 8] argument 1
691 // rsp[(argc + 1) * 8] argument 0 = reciever 691 // rsp[(argc + 1) * 8] argument 0 = receiver
692 // rsp[(argc + 2) * 8] function name 692 // rsp[(argc + 2) * 8] function name
693 693
694 Label miss; 694 Label miss;
695 695
696 // Get the receiver from the stack. 696 // Get the receiver from the stack.
697 const int argc = arguments().immediate(); 697 const int argc = arguments().immediate();
698 __ movq(rdx, Operand(rsp, (argc + 1) * kPointerSize)); 698 __ movq(rdx, Operand(rsp, (argc + 1) * kPointerSize));
699 699
700 // Check that the receiver isn't a smi. 700 // Check that the receiver isn't a smi.
701 if (check != NUMBER_CHECK) { 701 if (check != NUMBER_CHECK) {
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after
1890 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 1890 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
1891 1891
1892 // Return the generated code. 1892 // Return the generated code.
1893 return GetCode(); 1893 return GetCode();
1894 } 1894 }
1895 1895
1896 1896
1897 #undef __ 1897 #undef __
1898 1898
1899 } } // namespace v8::internal 1899 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/x64/ic-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698