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

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

Issue 370363002: MIPS: Fix computed properties on object literals with a double as propertyname. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 VisitForEffect(value); 1698 VisitForEffect(value);
1699 } 1699 }
1700 break; 1700 break;
1701 } 1701 }
1702 // Duplicate receiver on stack. 1702 // Duplicate receiver on stack.
1703 __ lw(a0, MemOperand(sp)); 1703 __ lw(a0, MemOperand(sp));
1704 __ push(a0); 1704 __ push(a0);
1705 VisitForStackValue(key); 1705 VisitForStackValue(key);
1706 VisitForStackValue(value); 1706 VisitForStackValue(value);
1707 if (property->emit_store()) { 1707 if (property->emit_store()) {
1708 __ li(a0, Operand(Smi::FromInt(NONE))); // PropertyAttributes. 1708 __ li(a0, Operand(Smi::FromInt(SLOPPY))); // PropertyAttributes.
1709 __ push(a0); 1709 __ push(a0);
1710 __ CallRuntime(Runtime::kAddProperty, 4); 1710 __ CallRuntime(Runtime::kSetProperty, 4);
1711 } else { 1711 } else {
1712 __ Drop(3); 1712 __ Drop(3);
1713 } 1713 }
1714 break; 1714 break;
1715 case ObjectLiteral::Property::PROTOTYPE: 1715 case ObjectLiteral::Property::PROTOTYPE:
1716 // Duplicate receiver on stack. 1716 // Duplicate receiver on stack.
1717 __ lw(a0, MemOperand(sp)); 1717 __ lw(a0, MemOperand(sp));
1718 __ push(a0); 1718 __ push(a0);
1719 VisitForStackValue(value); 1719 VisitForStackValue(value);
1720 if (property->emit_store()) { 1720 if (property->emit_store()) {
(...skipping 3138 matching lines...) Expand 10 before | Expand all | Expand 10 after
4859 Assembler::target_address_at(pc_immediate_load_address)) == 4859 Assembler::target_address_at(pc_immediate_load_address)) ==
4860 reinterpret_cast<uint32_t>( 4860 reinterpret_cast<uint32_t>(
4861 isolate->builtins()->OsrAfterStackCheck()->entry())); 4861 isolate->builtins()->OsrAfterStackCheck()->entry()));
4862 return OSR_AFTER_STACK_CHECK; 4862 return OSR_AFTER_STACK_CHECK;
4863 } 4863 }
4864 4864
4865 4865
4866 } } // namespace v8::internal 4866 } } // namespace v8::internal
4867 4867
4868 #endif // V8_TARGET_ARCH_MIPS 4868 #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