| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 430   elements_.Add(new_element); | 430   elements_.Add(new_element); | 
| 431 } | 431 } | 
| 432 | 432 | 
| 433 | 433 | 
| 434 Result VirtualFrame::CallStub(CodeStub* stub, int arg_count) { | 434 Result VirtualFrame::CallStub(CodeStub* stub, int arg_count) { | 
| 435   PrepareForCall(arg_count, arg_count); | 435   PrepareForCall(arg_count, arg_count); | 
| 436   return RawCallStub(stub); | 436   return RawCallStub(stub); | 
| 437 } | 437 } | 
| 438 | 438 | 
| 439 | 439 | 
| 440 Result VirtualFrame::CallStub(CodeStub* stub, Result* arg, int arg_count) { |  | 
| 441   PrepareForCall(arg_count, arg_count); |  | 
| 442   arg->Unuse(); |  | 
| 443   return RawCallStub(stub); |  | 
| 444 } |  | 
| 445 |  | 
| 446 |  | 
| 447 Result VirtualFrame::CallStub(CodeStub* stub, |  | 
| 448                               Result* arg0, |  | 
| 449                               Result* arg1, |  | 
| 450                               int arg_count) { |  | 
| 451   PrepareForCall(arg_count, arg_count); |  | 
| 452   arg0->Unuse(); |  | 
| 453   arg1->Unuse(); |  | 
| 454   return RawCallStub(stub); |  | 
| 455 } |  | 
| 456 |  | 
| 457 |  | 
| 458 void VirtualFrame::Push(Register reg) { | 440 void VirtualFrame::Push(Register reg) { | 
| 459   if (is_used(reg)) { | 441   if (is_used(reg)) { | 
| 460     elements_.Add(CopyElementAt(register_index(reg))); | 442     elements_.Add(CopyElementAt(register_index(reg))); | 
| 461   } else { | 443   } else { | 
| 462     Use(reg, elements_.length()); | 444     Use(reg, elements_.length()); | 
| 463     elements_.Add(FrameElement::RegisterElement(reg, FrameElement::NOT_SYNCED)); | 445     elements_.Add(FrameElement::RegisterElement(reg, FrameElement::NOT_SYNCED)); | 
| 464   } | 446   } | 
| 465 } | 447 } | 
| 466 | 448 | 
| 467 | 449 | 
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 527 #endif | 509 #endif | 
| 528   if (stack_pointer_ != other->stack_pointer_) return false; | 510   if (stack_pointer_ != other->stack_pointer_) return false; | 
| 529   for (int i = 0; i < elements_.length(); i++) { | 511   for (int i = 0; i < elements_.length(); i++) { | 
| 530     if (!elements_[i].Equals(other->elements_[i])) return false; | 512     if (!elements_[i].Equals(other->elements_[i])) return false; | 
| 531   } | 513   } | 
| 532 | 514 | 
| 533   return true; | 515   return true; | 
| 534 } | 516 } | 
| 535 | 517 | 
| 536 } }  // namespace v8::internal | 518 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|