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

Side by Side Diff: src/mips/full-codegen-mips.cc

Issue 11039014: MIPS: Fix mistake in r12549 (1597d7d9). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 2701 matching lines...) Expand 10 before | Expand all | Expand 10 after
2712 __ NumberOfOwnDescriptors(a3, a1); 2712 __ NumberOfOwnDescriptors(a3, a1);
2713 __ Branch(&done, eq, a3, Operand(zero_reg)); 2713 __ Branch(&done, eq, a3, Operand(zero_reg));
2714 2714
2715 __ LoadInstanceDescriptors(a1, t0, a2); 2715 __ LoadInstanceDescriptors(a1, t0, a2);
2716 // t0: descriptor array. 2716 // t0: descriptor array.
2717 // a3: valid entries in the descriptor array. 2717 // a3: valid entries in the descriptor array.
2718 STATIC_ASSERT(kSmiTag == 0); 2718 STATIC_ASSERT(kSmiTag == 0);
2719 STATIC_ASSERT(kSmiTagSize == 1); 2719 STATIC_ASSERT(kSmiTagSize == 1);
2720 STATIC_ASSERT(kPointerSize == 4); 2720 STATIC_ASSERT(kPointerSize == 4);
2721 __ li(at, Operand(DescriptorArray::kDescriptorSize)); 2721 __ li(at, Operand(DescriptorArray::kDescriptorSize));
2722 __ Mult(a3, at); 2722 __ Mul(a3, a3, at);
2723 // Calculate location of the first key name. 2723 // Calculate location of the first key name.
2724 __ Addu(t0, t0, Operand(DescriptorArray::kFirstOffset - kHeapObjectTag)); 2724 __ Addu(t0, t0, Operand(DescriptorArray::kFirstOffset - kHeapObjectTag));
2725 // Calculate the end of the descriptor array. 2725 // Calculate the end of the descriptor array.
2726 __ mov(a2, t0); 2726 __ mov(a2, t0);
2727 __ sll(t1, a3, kPointerSizeLog2 - kSmiTagSize); 2727 __ sll(t1, a3, kPointerSizeLog2 - kSmiTagSize);
2728 __ Addu(a2, a2, t1); 2728 __ Addu(a2, a2, t1);
2729 2729
2730 // Loop through all the keys in the descriptor array. If one of these is the 2730 // Loop through all the keys in the descriptor array. If one of these is the
2731 // symbol valueOf the result is false. 2731 // symbol valueOf the result is false.
2732 // The use of t2 to store the valueOf symbol asumes that it is not otherwise 2732 // The use of t2 to store the valueOf symbol asumes that it is not otherwise
(...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after
4568 *context_length = 0; 4568 *context_length = 0;
4569 return previous_; 4569 return previous_;
4570 } 4570 }
4571 4571
4572 4572
4573 #undef __ 4573 #undef __
4574 4574
4575 } } // namespace v8::internal 4575 } } // namespace v8::internal
4576 4576
4577 #endif // V8_TARGET_ARCH_MIPS 4577 #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