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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 6880036: Merge revision 7664 (revert of 7644 and 7632) to trunk. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 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/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 685
686 void Call(Label* target) { call(target); } 686 void Call(Label* target) { call(target); }
687 687
688 // Control Flow 688 // Control Flow
689 void Jump(Address destination, RelocInfo::Mode rmode); 689 void Jump(Address destination, RelocInfo::Mode rmode);
690 void Jump(ExternalReference ext); 690 void Jump(ExternalReference ext);
691 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode); 691 void Jump(Handle<Code> code_object, RelocInfo::Mode rmode);
692 692
693 void Call(Address destination, RelocInfo::Mode rmode); 693 void Call(Address destination, RelocInfo::Mode rmode);
694 void Call(ExternalReference ext); 694 void Call(ExternalReference ext);
695 void Call(Handle<Code> code_object, 695 void Call(Handle<Code> code_object, RelocInfo::Mode rmode);
696 RelocInfo::Mode rmode,
697 unsigned ast_id = kNoASTId);
698 696
699 // The size of the code generated for different call instructions. 697 // The size of the code generated for different call instructions.
700 int CallSize(Address destination, RelocInfo::Mode rmode) { 698 int CallSize(Address destination, RelocInfo::Mode rmode) {
701 return kCallInstructionLength; 699 return kCallInstructionLength;
702 } 700 }
703 int CallSize(ExternalReference ext); 701 int CallSize(ExternalReference ext);
704 int CallSize(Handle<Code> code_object) { 702 int CallSize(Handle<Code> code_object) {
705 // Code calls use 32-bit relative addressing. 703 // Code calls use 32-bit relative addressing.
706 return kShortCallInstructionLength; 704 return kShortCallInstructionLength;
707 } 705 }
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 void LoadGlobalFunction(int index, Register function); 925 void LoadGlobalFunction(int index, Register function);
928 926
929 // Load the initial map from the global function. The registers 927 // Load the initial map from the global function. The registers
930 // function and map can be the same. 928 // function and map can be the same.
931 void LoadGlobalFunctionInitialMap(Register function, Register map); 929 void LoadGlobalFunctionInitialMap(Register function, Register map);
932 930
933 // --------------------------------------------------------------------------- 931 // ---------------------------------------------------------------------------
934 // Runtime calls 932 // Runtime calls
935 933
936 // Call a code stub. 934 // Call a code stub.
937 void CallStub(CodeStub* stub, unsigned ast_id = kNoASTId); 935 void CallStub(CodeStub* stub);
938 936
939 // Call a code stub and return the code object called. Try to generate 937 // Call a code stub and return the code object called. Try to generate
940 // the code if necessary. Do not perform a GC but instead return a retry 938 // the code if necessary. Do not perform a GC but instead return a retry
941 // after GC failure. 939 // after GC failure.
942 MUST_USE_RESULT MaybeObject* TryCallStub(CodeStub* stub); 940 MUST_USE_RESULT MaybeObject* TryCallStub(CodeStub* stub);
943 941
944 // Tail call a code stub (jump). 942 // Tail call a code stub (jump).
945 void TailCallStub(CodeStub* stub); 943 void TailCallStub(CodeStub* stub);
946 944
947 // Tail call a code stub (jump) and return the code object called. Try to 945 // Tail call a code stub (jump) and return the code object called. Try to
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
2009 Jump(adaptor, RelocInfo::CODE_TARGET); 2007 Jump(adaptor, RelocInfo::CODE_TARGET);
2010 } 2008 }
2011 bind(&invoke); 2009 bind(&invoke);
2012 } 2010 }
2013 } 2011 }
2014 2012
2015 2013
2016 } } // namespace v8::internal 2014 } } // namespace v8::internal
2017 2015
2018 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 2016 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698