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

Side by Side Diff: src/arm/full-codegen-arm.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 | « no previous file | src/arm64/full-codegen-arm64.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_ARM 7 #if V8_TARGET_ARCH_ARM
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 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 } else { 1751 } else {
1752 __ Drop(3); 1752 __ Drop(3);
1753 } 1753 }
1754 break; 1754 break;
1755 case ObjectLiteral::Property::PROTOTYPE: 1755 case ObjectLiteral::Property::PROTOTYPE:
1756 // Duplicate receiver on stack. 1756 // Duplicate receiver on stack.
1757 __ ldr(r0, MemOperand(sp)); 1757 __ ldr(r0, MemOperand(sp));
1758 __ push(r0); 1758 __ push(r0);
1759 VisitForStackValue(value); 1759 VisitForStackValue(value);
1760 if (property->emit_store()) { 1760 if (property->emit_store()) {
1761 __ CallRuntime(Runtime::kSetPrototype, 2); 1761 __ CallRuntime(Runtime::kInternalSetPrototype, 2);
1762 } else { 1762 } else {
1763 __ Drop(2); 1763 __ Drop(2);
1764 } 1764 }
1765 break; 1765 break;
1766 1766
1767 case ObjectLiteral::Property::GETTER: 1767 case ObjectLiteral::Property::GETTER:
1768 accessor_table.lookup(key)->second->getter = value; 1768 accessor_table.lookup(key)->second->getter = value;
1769 break; 1769 break;
1770 case ObjectLiteral::Property::SETTER: 1770 case ObjectLiteral::Property::SETTER:
1771 accessor_table.lookup(key)->second->setter = value; 1771 accessor_table.lookup(key)->second->setter = value;
(...skipping 3491 matching lines...) Expand 10 before | Expand all | Expand 10 after
5263 5263
5264 DCHECK(interrupt_address == 5264 DCHECK(interrupt_address ==
5265 isolate->builtins()->OsrAfterStackCheck()->entry()); 5265 isolate->builtins()->OsrAfterStackCheck()->entry());
5266 return OSR_AFTER_STACK_CHECK; 5266 return OSR_AFTER_STACK_CHECK;
5267 } 5267 }
5268 5268
5269 5269
5270 } } // namespace v8::internal 5270 } } // namespace v8::internal
5271 5271
5272 #endif // V8_TARGET_ARCH_ARM 5272 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698