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

Side by Side Diff: src/mips/virtual-frame-mips.cc

Issue 1320006: Updates and fixes for MIPS support. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 7 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
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 UNIMPLEMENTED_MIPS(); 142 UNIMPLEMENTED_MIPS();
143 } 143 }
144 144
145 145
146 void VirtualFrame::CallStub(CodeStub* stub, Result* arg0, Result* arg1) { 146 void VirtualFrame::CallStub(CodeStub* stub, Result* arg0, Result* arg1) {
147 UNIMPLEMENTED_MIPS(); 147 UNIMPLEMENTED_MIPS();
148 } 148 }
149 149
150 150
151 void VirtualFrame::CallRuntime(Runtime::Function* f, int arg_count) { 151 void VirtualFrame::CallRuntime(Runtime::Function* f, int arg_count) {
152 PrepareForCall(arg_count, arg_count); 152 Forget(arg_count);
153 ASSERT(cgen()->HasValidEntryRegisters()); 153 ASSERT(cgen()->HasValidEntryRegisters());
154 __ CallRuntime(f, arg_count); 154 __ CallRuntime(f, arg_count);
155 } 155 }
156 156
157 157
158 void VirtualFrame::CallRuntime(Runtime::FunctionId id, int arg_count) { 158 void VirtualFrame::CallRuntime(Runtime::FunctionId id, int arg_count) {
159 PrepareForCall(arg_count, arg_count); 159 Forget(arg_count);
160 ASSERT(cgen()->HasValidEntryRegisters()); 160 ASSERT(cgen()->HasValidEntryRegisters());
161 __ CallRuntime(id, arg_count); 161 __ CallRuntime(id, arg_count);
162 } 162 }
163 163
164 164
165 void VirtualFrame::CallAlignedRuntime(Runtime::Function* f, int arg_count) { 165 void VirtualFrame::CallAlignedRuntime(Runtime::Function* f, int arg_count) {
166 UNIMPLEMENTED_MIPS(); 166 UNIMPLEMENTED_MIPS();
167 } 167 }
168 168
169 169
170 void VirtualFrame::CallAlignedRuntime(Runtime::FunctionId id, int arg_count) { 170 void VirtualFrame::CallAlignedRuntime(Runtime::FunctionId id, int arg_count) {
171 UNIMPLEMENTED_MIPS(); 171 UNIMPLEMENTED_MIPS();
172 } 172 }
173 173
174 174
175 void VirtualFrame::InvokeBuiltin(Builtins::JavaScript id, 175 void VirtualFrame::InvokeBuiltin(Builtins::JavaScript id,
176 InvokeJSFlags flags, 176 InvokeJSFlags flags,
177 Result* arg_count_register,
178 int arg_count) { 177 int arg_count) {
179 UNIMPLEMENTED_MIPS(); 178 UNIMPLEMENTED_MIPS();
180 } 179 }
181 180
182 181
183 void VirtualFrame::CallCodeObject(Handle<Code> code, 182 void VirtualFrame::CallCodeObject(Handle<Code> code,
184 RelocInfo::Mode rmode, 183 RelocInfo::Mode rmode,
185 int dropped_args) { 184 int dropped_args) {
186 switch (code->kind()) { 185 switch (code->kind()) {
187 case Code::CALL_IC: 186 case Code::CALL_IC:
188 break; 187 break;
189 case Code::FUNCTION: 188 case Code::FUNCTION:
190 UNIMPLEMENTED_MIPS(); 189 UNIMPLEMENTED_MIPS();
190 __ break_(__LINE__);
191 break; 191 break;
192 case Code::KEYED_LOAD_IC: 192 case Code::KEYED_LOAD_IC:
193 UNIMPLEMENTED_MIPS(); 193 UNIMPLEMENTED_MIPS();
194 __ break_(__LINE__);
194 break; 195 break;
195 case Code::LOAD_IC: 196 case Code::LOAD_IC:
196 UNIMPLEMENTED_MIPS(); 197 UNIMPLEMENTED_MIPS();
198 __ break_(__LINE__);
197 break; 199 break;
198 case Code::KEYED_STORE_IC: 200 case Code::KEYED_STORE_IC:
199 UNIMPLEMENTED_MIPS(); 201 UNIMPLEMENTED_MIPS();
202 __ break_(__LINE__);
200 break; 203 break;
201 case Code::STORE_IC: 204 case Code::STORE_IC:
202 UNIMPLEMENTED_MIPS(); 205 UNIMPLEMENTED_MIPS();
206 __ break_(__LINE__);
203 break; 207 break;
204 case Code::BUILTIN: 208 case Code::BUILTIN:
205 UNIMPLEMENTED_MIPS(); 209 UNIMPLEMENTED_MIPS();
210 __ break_(__LINE__);
206 break; 211 break;
207 default: 212 default:
208 UNREACHABLE(); 213 UNREACHABLE();
209 break; 214 break;
210 } 215 }
211 Forget(dropped_args); 216 Forget(dropped_args);
212 ASSERT(cgen()->HasValidEntryRegisters()); 217 ASSERT(cgen()->HasValidEntryRegisters());
213 __ Call(code, rmode); 218 __ Call(code, rmode);
214 } 219 }
215 220
216 221
217 void VirtualFrame::CallCodeObject(Handle<Code> code,
218 RelocInfo::Mode rmode,
219 Result* arg,
220 int dropped_args) {
221 UNIMPLEMENTED_MIPS();
222 }
223
224
225 void VirtualFrame::CallCodeObject(Handle<Code> code,
226 RelocInfo::Mode rmode,
227 Result* arg0,
228 Result* arg1,
229 int dropped_args,
230 bool set_auto_args_slots) {
231 UNIMPLEMENTED_MIPS();
232 }
233
234
235 void VirtualFrame::Drop(int count) { 222 void VirtualFrame::Drop(int count) {
236 ASSERT(count >= 0); 223 ASSERT(count >= 0);
237 ASSERT(height() >= count); 224 ASSERT(height() >= count);
238 int num_virtual_elements = (element_count() - 1) - stack_pointer_; 225 int num_virtual_elements = (element_count() - 1) - stack_pointer_;
239 226
240 // Emit code to lower the stack pointer if necessary. 227 // Emit code to lower the stack pointer if necessary.
241 if (num_virtual_elements < count) { 228 if (num_virtual_elements < count) {
242 int num_dropped = count - num_virtual_elements; 229 int num_dropped = count - num_virtual_elements;
243 stack_pointer_ -= num_dropped; 230 stack_pointer_ -= num_dropped;
244 __ addiu(sp, sp, num_dropped * kPointerSize); 231 __ addiu(sp, sp, num_dropped * kPointerSize);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 294
308 295
309 void VirtualFrame::EmitArgumentSlots(RegList reglist) { 296 void VirtualFrame::EmitArgumentSlots(RegList reglist) {
310 UNIMPLEMENTED_MIPS(); 297 UNIMPLEMENTED_MIPS();
311 } 298 }
312 299
313 #undef __ 300 #undef __
314 301
315 } } // namespace v8::internal 302 } } // namespace v8::internal
316 303
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698