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

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

Issue 26827002: Allow FastCloneShallowObjectStub to use AllocationMementos. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/code-stubs.h » ('j') | src/code-stubs.h » ('J')
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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 : ObjectLiteral::kNoFlags; 1650 : ObjectLiteral::kNoFlags;
1651 __ mov(r0, Operand(Smi::FromInt(flags))); 1651 __ mov(r0, Operand(Smi::FromInt(flags)));
1652 int properties_count = constant_properties->length() / 2; 1652 int properties_count = constant_properties->length() / 2;
1653 if ((FLAG_track_double_fields && expr->may_store_doubles()) || 1653 if ((FLAG_track_double_fields && expr->may_store_doubles()) ||
1654 expr->depth() > 1 || Serializer::enabled() || 1654 expr->depth() > 1 || Serializer::enabled() ||
1655 flags != ObjectLiteral::kFastElements || 1655 flags != ObjectLiteral::kFastElements ||
1656 properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) { 1656 properties_count > FastCloneShallowObjectStub::kMaximumClonedProperties) {
1657 __ Push(r3, r2, r1, r0); 1657 __ Push(r3, r2, r1, r0);
1658 __ CallRuntime(Runtime::kCreateObjectLiteral, 4); 1658 __ CallRuntime(Runtime::kCreateObjectLiteral, 4);
1659 } else { 1659 } else {
1660 FastCloneShallowObjectStub stub(properties_count); 1660 FastCloneShallowObjectStub stub(DONT_TRACK_ALLOCATION_SITE,
1661 properties_count);
1661 __ CallStub(&stub); 1662 __ CallStub(&stub);
1662 } 1663 }
1663 1664
1664 // If result_saved is true the result is on top of the stack. If 1665 // If result_saved is true the result is on top of the stack. If
1665 // result_saved is false the result is in r0. 1666 // result_saved is false the result is in r0.
1666 bool result_saved = false; 1667 bool result_saved = false;
1667 1668
1668 // Mark all computed expressions that are bound to a key that 1669 // Mark all computed expressions that are bound to a key that
1669 // is shadowed by a later occurrence of the same key. For the 1670 // is shadowed by a later occurrence of the same key. For the
1670 // marked expressions, no store code is emitted. 1671 // marked expressions, no store code is emitted.
(...skipping 3300 matching lines...) Expand 10 before | Expand all | Expand 10 after
4971 ASSERT(Memory::uint32_at(interrupt_address_pointer) == 4972 ASSERT(Memory::uint32_at(interrupt_address_pointer) ==
4972 reinterpret_cast<uint32_t>( 4973 reinterpret_cast<uint32_t>(
4973 isolate->builtins()->OsrAfterStackCheck()->entry())); 4974 isolate->builtins()->OsrAfterStackCheck()->entry()));
4974 return OSR_AFTER_STACK_CHECK; 4975 return OSR_AFTER_STACK_CHECK;
4975 } 4976 }
4976 4977
4977 4978
4978 } } // namespace v8::internal 4979 } } // namespace v8::internal
4979 4980
4980 #endif // V8_TARGET_ARCH_ARM 4981 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs.h » ('j') | src/code-stubs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698