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

Side by Side Diff: src/x64/full-codegen-x64.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, 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 | « src/objects.cc ('k') | src/x87/full-codegen-x87.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_X64 7 #if V8_TARGET_ARCH_X64
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 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 __ Push(Smi::FromInt(SLOPPY)); // Strict mode 1711 __ Push(Smi::FromInt(SLOPPY)); // Strict mode
1712 __ CallRuntime(Runtime::kSetProperty, 4); 1712 __ CallRuntime(Runtime::kSetProperty, 4);
1713 } else { 1713 } else {
1714 __ Drop(3); 1714 __ Drop(3);
1715 } 1715 }
1716 break; 1716 break;
1717 case ObjectLiteral::Property::PROTOTYPE: 1717 case ObjectLiteral::Property::PROTOTYPE:
1718 __ Push(Operand(rsp, 0)); // Duplicate receiver. 1718 __ Push(Operand(rsp, 0)); // Duplicate receiver.
1719 VisitForStackValue(value); 1719 VisitForStackValue(value);
1720 if (property->emit_store()) { 1720 if (property->emit_store()) {
1721 __ CallRuntime(Runtime::kSetPrototype, 2); 1721 __ CallRuntime(Runtime::kInternalSetPrototype, 2);
1722 } else { 1722 } else {
1723 __ Drop(2); 1723 __ Drop(2);
1724 } 1724 }
1725 break; 1725 break;
1726 case ObjectLiteral::Property::GETTER: 1726 case ObjectLiteral::Property::GETTER:
1727 accessor_table.lookup(key)->second->getter = value; 1727 accessor_table.lookup(key)->second->getter = value;
1728 break; 1728 break;
1729 case ObjectLiteral::Property::SETTER: 1729 case ObjectLiteral::Property::SETTER:
1730 accessor_table.lookup(key)->second->setter = value; 1730 accessor_table.lookup(key)->second->setter = value;
1731 break; 1731 break;
(...skipping 3427 matching lines...) Expand 10 before | Expand all | Expand 10 after
5159 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5159 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5160 Assembler::target_address_at(call_target_address, 5160 Assembler::target_address_at(call_target_address,
5161 unoptimized_code)); 5161 unoptimized_code));
5162 return OSR_AFTER_STACK_CHECK; 5162 return OSR_AFTER_STACK_CHECK;
5163 } 5163 }
5164 5164
5165 5165
5166 } } // namespace v8::internal 5166 } } // namespace v8::internal
5167 5167
5168 #endif // V8_TARGET_ARCH_X64 5168 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698