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

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

Issue 667253002: Speed up creation of Objects whose prototype has dictionary elements (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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/compiler/ast-graph-builder.cc ('k') | src/mips/full-codegen-mips.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 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-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 __ push(Immediate(Smi::FromInt(SLOPPY))); // Strict mode 1677 __ push(Immediate(Smi::FromInt(SLOPPY))); // Strict mode
1678 __ CallRuntime(Runtime::kSetProperty, 4); 1678 __ CallRuntime(Runtime::kSetProperty, 4);
1679 } else { 1679 } else {
1680 __ Drop(3); 1680 __ Drop(3);
1681 } 1681 }
1682 break; 1682 break;
1683 case ObjectLiteral::Property::PROTOTYPE: 1683 case ObjectLiteral::Property::PROTOTYPE:
1684 __ push(Operand(esp, 0)); // Duplicate receiver. 1684 __ push(Operand(esp, 0)); // Duplicate receiver.
1685 VisitForStackValue(value); 1685 VisitForStackValue(value);
1686 if (property->emit_store()) { 1686 if (property->emit_store()) {
1687 __ CallRuntime(Runtime::kSetPrototype, 2); 1687 __ CallRuntime(Runtime::kInternalSetPrototype, 2);
1688 } else { 1688 } else {
1689 __ Drop(2); 1689 __ Drop(2);
1690 } 1690 }
1691 break; 1691 break;
1692 case ObjectLiteral::Property::GETTER: 1692 case ObjectLiteral::Property::GETTER:
1693 accessor_table.lookup(key)->second->getter = value; 1693 accessor_table.lookup(key)->second->getter = value;
1694 break; 1694 break;
1695 case ObjectLiteral::Property::SETTER: 1695 case ObjectLiteral::Property::SETTER:
1696 accessor_table.lookup(key)->second->setter = value; 1696 accessor_table.lookup(key)->second->setter = value;
1697 break; 1697 break;
(...skipping 3446 matching lines...) Expand 10 before | Expand all | Expand 10 after
5144 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5144 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5145 Assembler::target_address_at(call_target_address, 5145 Assembler::target_address_at(call_target_address,
5146 unoptimized_code)); 5146 unoptimized_code));
5147 return OSR_AFTER_STACK_CHECK; 5147 return OSR_AFTER_STACK_CHECK;
5148 } 5148 }
5149 5149
5150 5150
5151 } } // namespace v8::internal 5151 } } // namespace v8::internal
5152 5152
5153 #endif // V8_TARGET_ARCH_IA32 5153 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698