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

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

Issue 608007: Fix arm build.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 10 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/virtual-frame-arm.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 29 matching lines...) Expand all
40 #define __ ACCESS_MASM(masm()) 40 #define __ ACCESS_MASM(masm())
41 41
42 42
43 // On entry to a function, the virtual frame already contains the 43 // On entry to a function, the virtual frame already contains the
44 // receiver and the parameters. All initial frame elements are in 44 // receiver and the parameters. All initial frame elements are in
45 // memory. 45 // memory.
46 VirtualFrame::VirtualFrame() 46 VirtualFrame::VirtualFrame()
47 : elements_(parameter_count() + local_count() + kPreallocatedElements), 47 : elements_(parameter_count() + local_count() + kPreallocatedElements),
48 stack_pointer_(parameter_count()) { // 0-based index of TOS. 48 stack_pointer_(parameter_count()) { // 0-based index of TOS.
49 for (int i = 0; i <= stack_pointer_; i++) { 49 for (int i = 0; i <= stack_pointer_; i++) {
50 elements_.Add(FrameElement::MemoryElement()); 50 elements_.Add(FrameElement::MemoryElement(NumberInfo::kUnknown));
51 } 51 }
52 for (int i = 0; i < RegisterAllocator::kNumRegisters; i++) { 52 for (int i = 0; i < RegisterAllocator::kNumRegisters; i++) {
53 register_locations_[i] = kIllegalIndex; 53 register_locations_[i] = kIllegalIndex;
54 } 54 }
55 } 55 }
56 56
57 57
58 void VirtualFrame::SyncElementBelowStackPointer(int index) { 58 void VirtualFrame::SyncElementBelowStackPointer(int index) {
59 UNREACHABLE(); 59 UNREACHABLE();
60 } 60 }
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 void VirtualFrame::EmitPop(Register reg) { 306 void VirtualFrame::EmitPop(Register reg) {
307 ASSERT(stack_pointer_ == element_count() - 1); 307 ASSERT(stack_pointer_ == element_count() - 1);
308 stack_pointer_--; 308 stack_pointer_--;
309 elements_.RemoveLast(); 309 elements_.RemoveLast();
310 __ pop(reg); 310 __ pop(reg);
311 } 311 }
312 312
313 313
314 void VirtualFrame::EmitPush(Register reg) { 314 void VirtualFrame::EmitPush(Register reg) {
315 ASSERT(stack_pointer_ == element_count() - 1); 315 ASSERT(stack_pointer_ == element_count() - 1);
316 elements_.Add(FrameElement::MemoryElement()); 316 elements_.Add(FrameElement::MemoryElement(NumberInfo::kUnknown));
317 stack_pointer_++; 317 stack_pointer_++;
318 __ push(reg); 318 __ push(reg);
319 } 319 }
320 320
321 321
322 void VirtualFrame::EmitPushMultiple(int count, int src_regs) { 322 void VirtualFrame::EmitPushMultiple(int count, int src_regs) {
323 ASSERT(stack_pointer_ == element_count() - 1); 323 ASSERT(stack_pointer_ == element_count() - 1);
324 Adjust(count); 324 Adjust(count);
325 __ stm(db_w, sp, src_regs); 325 __ stm(db_w, sp, src_regs);
326 } 326 }
327 327
328 328
329 #undef __ 329 #undef __
330 330
331 } } // namespace v8::internal 331 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/virtual-frame-arm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698