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

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

Issue 7635018: Merge r8868 into 3.2 branch, fix deoptimizer for two-word call sites. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.2/
Patch Set: Created 9 years, 4 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/deoptimizer-arm.cc ('k') | src/version.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 2010 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
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // The isolate parameter can be NULL if the macro assembler should 93 // The isolate parameter can be NULL if the macro assembler should
94 // not use isolate-dependent functionality. In this case, it's the 94 // not use isolate-dependent functionality. In this case, it's the
95 // responsibility of the caller to never invoke such function on the 95 // responsibility of the caller to never invoke such function on the
96 // macro assembler. 96 // macro assembler.
97 MacroAssembler(Isolate* isolate, void* buffer, int size); 97 MacroAssembler(Isolate* isolate, void* buffer, int size);
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 static 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 static 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 static int CallSize(Handle<Code> code,
108 RelocInfo::Mode rmode,
109 Condition cond = al);
108 void Call(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); 110 void Call(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al);
109 void Ret(Condition cond = al); 111 void Ret(Condition cond = al);
110 112
111 // Emit code to discard a non-negative number of pointer-sized elements 113 // Emit code to discard a non-negative number of pointer-sized elements
112 // from the stack, clobbering only the sp register. 114 // from the stack, clobbering only the sp register.
113 void Drop(int count, Condition cond = al); 115 void Drop(int count, Condition cond = al);
114 116
115 void Ret(int drop, Condition cond = al); 117 void Ret(int drop, Condition cond = al);
116 118
117 // Swap two registers. If the scratch register is omitted then a slightly 119 // Swap two registers. If the scratch register is omitted then a slightly
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 Register result); 952 Register result);
951 953
952 954
953 private: 955 private:
954 void CallCFunctionHelper(Register function, 956 void CallCFunctionHelper(Register function,
955 ExternalReference function_reference, 957 ExternalReference function_reference,
956 Register scratch, 958 Register scratch,
957 int num_arguments); 959 int num_arguments);
958 960
959 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); 961 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
960 int CallSize(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); 962 static int CallSize(intptr_t target,
963 RelocInfo::Mode rmode,
964 Condition cond = al);
961 void Call(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); 965 void Call(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
962 966
963 // Helper functions for generating invokes. 967 // Helper functions for generating invokes.
964 void InvokePrologue(const ParameterCount& expected, 968 void InvokePrologue(const ParameterCount& expected,
965 const ParameterCount& actual, 969 const ParameterCount& actual,
966 Handle<Code> code_constant, 970 Handle<Code> code_constant,
967 Register code_reg, 971 Register code_reg,
968 Label* done, 972 Label* done,
969 InvokeFlag flag, 973 InvokeFlag flag,
970 CallWrapper* call_wrapper = NULL); 974 CallWrapper* call_wrapper = NULL);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1066 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1063 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1067 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1064 #else 1068 #else
1065 #define ACCESS_MASM(masm) masm-> 1069 #define ACCESS_MASM(masm) masm->
1066 #endif 1070 #endif
1067 1071
1068 1072
1069 } } // namespace v8::internal 1073 } } // namespace v8::internal
1070 1074
1071 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1075 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698