OLD | NEW |
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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 void VirtualFrame::EmitPop(Register reg) { | 288 void VirtualFrame::EmitPop(Register reg) { |
289 ASSERT(stack_pointer_ == element_count() - 1); | 289 ASSERT(stack_pointer_ == element_count() - 1); |
290 stack_pointer_--; | 290 stack_pointer_--; |
291 elements_.RemoveLast(); | 291 elements_.RemoveLast(); |
292 __ pop(reg); | 292 __ pop(reg); |
293 } | 293 } |
294 | 294 |
295 | 295 |
296 void VirtualFrame::EmitPush(Register reg) { | 296 void VirtualFrame::EmitPush(Register reg) { |
297 ASSERT(stack_pointer_ == element_count() - 1); | 297 ASSERT(stack_pointer_ == element_count() - 1); |
298 elements_.Add(FrameElement::MemoryElement(NumberInfo::Unknown())); | 298 elements_.Add(FrameElement::MemoryElement(TypeInfo::Unknown())); |
299 stack_pointer_++; | 299 stack_pointer_++; |
300 __ push(reg); | 300 __ push(reg); |
301 } | 301 } |
302 | 302 |
303 | 303 |
304 void VirtualFrame::EmitPushMultiple(int count, int src_regs) { | 304 void VirtualFrame::EmitPushMultiple(int count, int src_regs) { |
305 ASSERT(stack_pointer_ == element_count() - 1); | 305 ASSERT(stack_pointer_ == element_count() - 1); |
306 Adjust(count); | 306 Adjust(count); |
307 __ stm(db_w, sp, src_regs); | 307 __ stm(db_w, sp, src_regs); |
308 } | 308 } |
309 | 309 |
310 | 310 |
311 #undef __ | 311 #undef __ |
312 | 312 |
313 } } // namespace v8::internal | 313 } } // namespace v8::internal |
OLD | NEW |