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

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

Issue 115399: Fix build on arm and x64. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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
« no previous file with comments | « src/arm/virtual-frame-arm.h ('k') | src/x64/virtual-frame-x64.h » ('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 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 FrameElement dropped = elements_.RemoveLast(); 415 FrameElement dropped = elements_.RemoveLast();
416 if (dropped.is_register()) { 416 if (dropped.is_register()) {
417 Unuse(dropped.reg()); 417 Unuse(dropped.reg());
418 } 418 }
419 } 419 }
420 } 420 }
421 421
422 422
423 Result VirtualFrame::Pop() { 423 Result VirtualFrame::Pop() {
424 UNIMPLEMENTED(); 424 UNIMPLEMENTED();
425 Result invalid(cgen_); 425 return Result();
426 return invalid;
427 } 426 }
428 427
429 428
430 void VirtualFrame::EmitPop(Register reg) { 429 void VirtualFrame::EmitPop(Register reg) {
431 ASSERT(stack_pointer_ == elements_.length() - 1); 430 ASSERT(stack_pointer_ == elements_.length() - 1);
432 stack_pointer_--; 431 stack_pointer_--;
433 elements_.RemoveLast(); 432 elements_.RemoveLast();
434 __ pop(reg); 433 __ pop(reg);
435 } 434 }
436 435
437 436
438 void VirtualFrame::EmitPush(Register reg) { 437 void VirtualFrame::EmitPush(Register reg) {
439 ASSERT(stack_pointer_ == elements_.length() - 1); 438 ASSERT(stack_pointer_ == elements_.length() - 1);
440 elements_.Add(FrameElement::MemoryElement()); 439 elements_.Add(FrameElement::MemoryElement());
441 stack_pointer_++; 440 stack_pointer_++;
442 __ push(reg); 441 __ push(reg);
443 } 442 }
444 443
445 444
446 #undef __ 445 #undef __
447 446
448 } } // namespace v8::internal 447 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/virtual-frame-arm.h ('k') | src/x64/virtual-frame-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698