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/ia32/full-codegen-ia32.cc

Issue 351853005: Split SetProperty(...attributes, strictmode) into AddProperty(...attributes) and SetProperty(...… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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
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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after
1642 } else { 1642 } else {
1643 VisitForEffect(value); 1643 VisitForEffect(value);
1644 } 1644 }
1645 break; 1645 break;
1646 } 1646 }
1647 __ push(Operand(esp, 0)); // Duplicate receiver. 1647 __ push(Operand(esp, 0)); // Duplicate receiver.
1648 VisitForStackValue(key); 1648 VisitForStackValue(key);
1649 VisitForStackValue(value); 1649 VisitForStackValue(value);
1650 if (property->emit_store()) { 1650 if (property->emit_store()) {
1651 __ push(Immediate(Smi::FromInt(NONE))); // PropertyAttributes 1651 __ push(Immediate(Smi::FromInt(NONE))); // PropertyAttributes
1652 __ CallRuntime(Runtime::kSetProperty, 4); 1652 __ CallRuntime(Runtime::kDefineProperty, 4);
1653 } else { 1653 } else {
1654 __ Drop(3); 1654 __ Drop(3);
1655 } 1655 }
1656 break; 1656 break;
1657 case ObjectLiteral::Property::PROTOTYPE: 1657 case ObjectLiteral::Property::PROTOTYPE:
1658 __ push(Operand(esp, 0)); // Duplicate receiver. 1658 __ push(Operand(esp, 0)); // Duplicate receiver.
1659 VisitForStackValue(value); 1659 VisitForStackValue(value);
1660 if (property->emit_store()) { 1660 if (property->emit_store()) {
1661 __ CallRuntime(Runtime::kSetPrototype, 2); 1661 __ CallRuntime(Runtime::kSetPrototype, 2);
1662 } else { 1662 } else {
(...skipping 3136 matching lines...) Expand 10 before | Expand all | Expand 10 after
4799 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4799 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4800 Assembler::target_address_at(call_target_address, 4800 Assembler::target_address_at(call_target_address,
4801 unoptimized_code)); 4801 unoptimized_code));
4802 return OSR_AFTER_STACK_CHECK; 4802 return OSR_AFTER_STACK_CHECK;
4803 } 4803 }
4804 4804
4805 4805
4806 } } // namespace v8::internal 4806 } } // namespace v8::internal
4807 4807
4808 #endif // V8_TARGET_ARCH_IA32 4808 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698