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

Side by Side Diff: src/ic/ic.cc

Issue 1138483005: Reland "Mark internal AccessorInfo properties as 'special data properties'" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Created 5 years, 7 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
« no previous file with comments | « src/accessors.cc ('k') | src/lookup.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 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 NamedStoreHandlerCompiler compiler(isolate(), receiver_map(), holder); 1657 NamedStoreHandlerCompiler compiler(isolate(), receiver_map(), holder);
1658 return compiler.CompileStoreInterceptor(lookup->name()); 1658 return compiler.CompileStoreInterceptor(lookup->name());
1659 } 1659 }
1660 1660
1661 case LookupIterator::ACCESSOR: { 1661 case LookupIterator::ACCESSOR: {
1662 if (!holder->HasFastProperties()) { 1662 if (!holder->HasFastProperties()) {
1663 TRACE_GENERIC_IC(isolate(), "StoreIC", "accessor on slow map"); 1663 TRACE_GENERIC_IC(isolate(), "StoreIC", "accessor on slow map");
1664 break; 1664 break;
1665 } 1665 }
1666 Handle<Object> accessors = lookup->GetAccessors(); 1666 Handle<Object> accessors = lookup->GetAccessors();
1667 if (accessors->IsExecutableAccessorInfo()) { 1667 if (accessors->IsExecutableAccessorInfo() &&
1668 (!AccessorInfo::cast(*accessors)->is_special_data_property() ||
Igor Sheludko 2015/05/18 11:53:15 Maybe it's better to handle special data property
1669 lookup->HolderIsReceiverOrHiddenPrototype())) {
1668 Handle<ExecutableAccessorInfo> info = 1670 Handle<ExecutableAccessorInfo> info =
1669 Handle<ExecutableAccessorInfo>::cast(accessors); 1671 Handle<ExecutableAccessorInfo>::cast(accessors);
1670 if (v8::ToCData<Address>(info->setter()) == 0) { 1672 if (v8::ToCData<Address>(info->setter()) == 0) {
1671 TRACE_GENERIC_IC(isolate(), "StoreIC", "setter == 0"); 1673 TRACE_GENERIC_IC(isolate(), "StoreIC", "setter == 0");
1672 break; 1674 break;
1673 } 1675 }
1674 if (!ExecutableAccessorInfo::IsCompatibleReceiverMap(isolate(), info, 1676 if (!ExecutableAccessorInfo::IsCompatibleReceiverMap(isolate(), info,
1675 receiver_map())) { 1677 receiver_map())) {
1676 TRACE_GENERIC_IC(isolate(), "StoreIC", "incompatible receiver type"); 1678 TRACE_GENERIC_IC(isolate(), "StoreIC", "incompatible receiver type");
1677 break; 1679 break;
(...skipping 1227 matching lines...) Expand 10 before | Expand all | Expand 10 after
2905 static const Address IC_utilities[] = { 2907 static const Address IC_utilities[] = {
2906 #define ADDR(name) FUNCTION_ADDR(name), 2908 #define ADDR(name) FUNCTION_ADDR(name),
2907 IC_UTIL_LIST(ADDR) NULL 2909 IC_UTIL_LIST(ADDR) NULL
2908 #undef ADDR 2910 #undef ADDR
2909 }; 2911 };
2910 2912
2911 2913
2912 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } 2914 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; }
2913 } 2915 }
2914 } // namespace v8::internal 2916 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/accessors.cc ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698