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

Side by Side Diff: src/x87/full-codegen-x87.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/x64/full-codegen-x64.cc ('k') | test/mjsunit/fast-prototype.js » ('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_X87 7 #if V8_TARGET_ARCH_X87
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 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 __ push(Immediate(Smi::FromInt(SLOPPY))); // Strict mode 1666 __ push(Immediate(Smi::FromInt(SLOPPY))); // Strict mode
1667 __ CallRuntime(Runtime::kSetProperty, 4); 1667 __ CallRuntime(Runtime::kSetProperty, 4);
1668 } else { 1668 } else {
1669 __ Drop(3); 1669 __ Drop(3);
1670 } 1670 }
1671 break; 1671 break;
1672 case ObjectLiteral::Property::PROTOTYPE: 1672 case ObjectLiteral::Property::PROTOTYPE:
1673 __ push(Operand(esp, 0)); // Duplicate receiver. 1673 __ push(Operand(esp, 0)); // Duplicate receiver.
1674 VisitForStackValue(value); 1674 VisitForStackValue(value);
1675 if (property->emit_store()) { 1675 if (property->emit_store()) {
1676 __ CallRuntime(Runtime::kSetPrototype, 2); 1676 __ CallRuntime(Runtime::kInternalSetPrototype, 2);
1677 } else { 1677 } else {
1678 __ Drop(2); 1678 __ Drop(2);
1679 } 1679 }
1680 break; 1680 break;
1681 case ObjectLiteral::Property::GETTER: 1681 case ObjectLiteral::Property::GETTER:
1682 accessor_table.lookup(key)->second->getter = value; 1682 accessor_table.lookup(key)->second->getter = value;
1683 break; 1683 break;
1684 case ObjectLiteral::Property::SETTER: 1684 case ObjectLiteral::Property::SETTER:
1685 accessor_table.lookup(key)->second->setter = value; 1685 accessor_table.lookup(key)->second->setter = value;
1686 break; 1686 break;
(...skipping 3443 matching lines...) Expand 10 before | Expand all | Expand 10 after
5130 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5130 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5131 Assembler::target_address_at(call_target_address, 5131 Assembler::target_address_at(call_target_address,
5132 unoptimized_code)); 5132 unoptimized_code));
5133 return OSR_AFTER_STACK_CHECK; 5133 return OSR_AFTER_STACK_CHECK;
5134 } 5134 }
5135 5135
5136 5136
5137 } } // namespace v8::internal 5137 } } // namespace v8::internal
5138 5138
5139 #endif // V8_TARGET_ARCH_X87 5139 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | test/mjsunit/fast-prototype.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698