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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 23583004: MIPS: Fix Cluster Fuzz stack frame corruption bug. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 4790 matching lines...) Expand 10 before | Expand all | Expand 10 after
4801 4801
4802 // The target function is the Array constructor. 4802 // The target function is the Array constructor.
4803 // Create an AllocationSite if we don't already have it, store it in the cell. 4803 // Create an AllocationSite if we don't already have it, store it in the cell.
4804 { 4804 {
4805 FrameScope scope(masm, StackFrame::INTERNAL); 4805 FrameScope scope(masm, StackFrame::INTERNAL);
4806 const RegList kSavedRegs = 4806 const RegList kSavedRegs =
4807 1 << 4 | // a0 4807 1 << 4 | // a0
4808 1 << 5 | // a1 4808 1 << 5 | // a1
4809 1 << 6; // a2 4809 1 << 6; // a2
4810 4810
4811 __ SmiTag(a0);
4811 __ MultiPush(kSavedRegs); 4812 __ MultiPush(kSavedRegs);
4812 4813
4813 CreateAllocationSiteStub create_stub; 4814 CreateAllocationSiteStub create_stub;
4814 __ CallStub(&create_stub); 4815 __ CallStub(&create_stub);
4815 4816
4816 __ MultiPop(kSavedRegs); 4817 __ MultiPop(kSavedRegs);
4818 __ SmiUntag(a0);
4817 } 4819 }
4818 __ Branch(&done); 4820 __ Branch(&done);
4819 4821
4820 __ bind(&not_array_function); 4822 __ bind(&not_array_function);
4821 __ sw(a1, FieldMemOperand(a2, Cell::kValueOffset)); 4823 __ sw(a1, FieldMemOperand(a2, Cell::kValueOffset));
4822 // No need for a write barrier here - cells are rescanned. 4824 // No need for a write barrier here - cells are rescanned.
4823 4825
4824 __ bind(&done); 4826 __ bind(&done);
4825 } 4827 }
4826 4828
(...skipping 2752 matching lines...) Expand 10 before | Expand all | Expand 10 after
7579 __ bind(&fast_elements_case); 7581 __ bind(&fast_elements_case);
7580 GenerateCase(masm, FAST_ELEMENTS); 7582 GenerateCase(masm, FAST_ELEMENTS);
7581 } 7583 }
7582 7584
7583 7585
7584 #undef __ 7586 #undef __
7585 7587
7586 } } // namespace v8::internal 7588 } } // namespace v8::internal
7587 7589
7588 #endif // V8_TARGET_ARCH_MIPS 7590 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698