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

Side by Side Diff: src/ia32/deoptimizer-ia32.cc

Issue 7282033: Change return type of FrameDescription::GetFrameSize to avoid unneeded type casts. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 5 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/deoptimizer.cc ('k') | src/x64/deoptimizer-x64.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 for (int i = 0; i < Register::kNumRegisters; i++) { 614 for (int i = 0; i < Register::kNumRegisters; i++) {
615 input_->SetRegister(i, i * 4); 615 input_->SetRegister(i, i * 4);
616 } 616 }
617 input_->SetRegister(esp.code(), reinterpret_cast<intptr_t>(frame->sp())); 617 input_->SetRegister(esp.code(), reinterpret_cast<intptr_t>(frame->sp()));
618 input_->SetRegister(ebp.code(), reinterpret_cast<intptr_t>(frame->fp())); 618 input_->SetRegister(ebp.code(), reinterpret_cast<intptr_t>(frame->fp()));
619 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; i++) { 619 for (int i = 0; i < DoubleRegister::kNumAllocatableRegisters; i++) {
620 input_->SetDoubleRegister(i, 0.0); 620 input_->SetDoubleRegister(i, 0.0);
621 } 621 }
622 622
623 // Fill the frame content from the actual data on the frame. 623 // Fill the frame content from the actual data on the frame.
624 for (intptr_t i = 0; i < input_->GetFrameSize(); i += kPointerSize) { 624 for (unsigned i = 0; i < input_->GetFrameSize(); i += kPointerSize) {
625 input_->SetFrameSlot(i, Memory::uint32_at(tos + i)); 625 input_->SetFrameSlot(i, Memory::uint32_at(tos + i));
626 } 626 }
627 } 627 }
628 628
629 629
630 #define __ masm()-> 630 #define __ masm()->
631 631
632 void Deoptimizer::EntryGenerator::Generate() { 632 void Deoptimizer::EntryGenerator::Generate() {
633 GeneratePrologue(); 633 GeneratePrologue();
634 CpuFeatures::Scope scope(SSE2); 634 CpuFeatures::Scope scope(SSE2);
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 } 792 }
793 __ bind(&done); 793 __ bind(&done);
794 } 794 }
795 795
796 #undef __ 796 #undef __
797 797
798 798
799 } } // namespace v8::internal 799 } } // namespace v8::internal
800 800
801 #endif // V8_TARGET_ARCH_IA32 801 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/x64/deoptimizer-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698