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

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

Issue 20488: Experimental: introduce a simple way to avoid generating jumps to... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 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
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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 ASSERT(num_dropped >= 0); 468 ASSERT(num_dropped >= 0);
469 if (num_dropped == 0) return; 469 if (num_dropped == 0) return;
470 Result tos = Pop(); 470 Result tos = Pop();
471 if (num_dropped > 1) { 471 if (num_dropped > 1) {
472 Drop(num_dropped - 1); 472 Drop(num_dropped - 1);
473 } 473 }
474 SetElementAt(0, &tos); 474 SetElementAt(0, &tos);
475 } 475 }
476 476
477 477
478 #ifdef DEBUG
479 bool FrameElement::Equals(FrameElement other) { 478 bool FrameElement::Equals(FrameElement other) {
480 if (type() != other.type()) return false; 479 if (type() != other.type()) return false;
481 if (is_synced() != other.is_synced()) return false; 480 if (is_synced() != other.is_synced()) return false;
482 481
483 if (is_register()) { 482 if (is_register()) {
484 if (!reg().is(other.reg())) return false; 483 if (!reg().is(other.reg())) return false;
485 } else if (is_constant()) { 484 } else if (is_constant()) {
486 if (!handle().is_identical_to(other.handle())) return false; 485 if (!handle().is_identical_to(other.handle())) return false;
487 } else if (is_copy()) { 486 } else if (is_copy()) {
488 if (index() != other.index()) return false; 487 if (index() != other.index()) return false;
(...skipping 18 matching lines...) Expand all
507 if (frame_pointer_ != other->frame_pointer_) return false; 506 if (frame_pointer_ != other->frame_pointer_) return false;
508 507
509 for (int i = 0; i < kNumRegisters; i++) { 508 for (int i = 0; i < kNumRegisters; i++) {
510 if (frame_registers_.count(i) != other->frame_registers_.count(i)) { 509 if (frame_registers_.count(i) != other->frame_registers_.count(i)) {
511 return false; 510 return false;
512 } 511 }
513 } 512 }
514 513
515 return true; 514 return true;
516 } 515 }
517 #endif
518 516
519 } } // namespace v8::internal 517 } } // namespace v8::internal
OLDNEW
« src/jump-target-ia32.cc ('K') | « src/virtual-frame.h ('k') | src/virtual-frame-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698