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

Side by Side Diff: src/arm/macro-assembler-arm.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/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 2010 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
11 // with the distribution. 11 // with the distribution.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // Jump, Call, and Ret pseudo instructions implementing inter-working. 99 // Jump, Call, and Ret pseudo instructions implementing inter-working.
100 void Jump(Register target, Condition cond = al); 100 void Jump(Register target, Condition cond = al);
101 void Jump(byte* target, RelocInfo::Mode rmode, Condition cond = al); 101 void Jump(byte* target, RelocInfo::Mode rmode, Condition cond = al);
102 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); 102 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al);
103 int CallSize(Register target, Condition cond = al); 103 int CallSize(Register target, Condition cond = al);
104 void Call(Register target, Condition cond = al); 104 void Call(Register target, Condition cond = al);
105 int CallSize(byte* target, RelocInfo::Mode rmode, Condition cond = al); 105 int CallSize(byte* target, RelocInfo::Mode rmode, Condition cond = al);
106 void Call(byte* target, RelocInfo::Mode rmode, Condition cond = al); 106 void Call(byte* target, RelocInfo::Mode rmode, Condition cond = al);
107 int CallSize(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); 107 int CallSize(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al);
108 void Call(Handle<Code> code, 108 void Call(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al);
109 RelocInfo::Mode rmode,
110 Condition cond = al);
111 void CallWithAstId(Handle<Code> code,
112 RelocInfo::Mode rmode,
113 unsigned ast_id,
114 Condition cond = al);
115 void Ret(Condition cond = al); 109 void Ret(Condition cond = al);
116 110
117 // Emit code to discard a non-negative number of pointer-sized elements 111 // Emit code to discard a non-negative number of pointer-sized elements
118 // from the stack, clobbering only the sp register. 112 // from the stack, clobbering only the sp register.
119 void Drop(int count, Condition cond = al); 113 void Drop(int count, Condition cond = al);
120 114
121 void Ret(int drop, Condition cond = al); 115 void Ret(int drop, Condition cond = al);
122 116
123 // Swap two registers. If the scratch register is omitted then a slightly 117 // Swap two registers. If the scratch register is omitted then a slightly
124 // less efficient form using xor instead of mov is emitted. 118 // less efficient form using xor instead of mov is emitted.
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 951
958 952
959 private: 953 private:
960 void CallCFunctionHelper(Register function, 954 void CallCFunctionHelper(Register function,
961 ExternalReference function_reference, 955 ExternalReference function_reference,
962 Register scratch, 956 Register scratch,
963 int num_arguments); 957 int num_arguments);
964 958
965 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); 959 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
966 int CallSize(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); 960 int CallSize(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
967 void Call(intptr_t target, 961 void Call(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
968 RelocInfo::Mode rmode,
969 Condition cond = al);
970 962
971 // Helper functions for generating invokes. 963 // Helper functions for generating invokes.
972 void InvokePrologue(const ParameterCount& expected, 964 void InvokePrologue(const ParameterCount& expected,
973 const ParameterCount& actual, 965 const ParameterCount& actual,
974 Handle<Code> code_constant, 966 Handle<Code> code_constant,
975 Register code_reg, 967 Register code_reg,
976 Label* done, 968 Label* done,
977 InvokeFlag flag, 969 InvokeFlag flag,
978 CallWrapper* call_wrapper = NULL); 970 CallWrapper* call_wrapper = NULL);
979 971
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1062 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1071 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1063 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1072 #else 1064 #else
1073 #define ACCESS_MASM(masm) masm-> 1065 #define ACCESS_MASM(masm) masm->
1074 #endif 1066 #endif
1075 1067
1076 1068
1077 } } // namespace v8::internal 1069 } } // namespace v8::internal
1078 1070
1079 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1071 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698