OLD | NEW |
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/ic/ic.h" | 5 #include "src/ic/ic.h" |
6 | 6 |
7 #include <iostream> | 7 #include <iostream> |
8 | 8 |
9 #include "src/accessors.h" | 9 #include "src/accessors.h" |
10 #include "src/api-arguments-inl.h" | 10 #include "src/api-arguments-inl.h" |
(...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2040 DCHECK(holder.is_identical_to(receiver)); | 2040 DCHECK(holder.is_identical_to(receiver)); |
2041 return isolate()->builtins()->StoreIC_Normal(); | 2041 return isolate()->builtins()->StoreIC_Normal(); |
2042 } | 2042 } |
2043 | 2043 |
2044 // -------------- Fields -------------- | 2044 // -------------- Fields -------------- |
2045 if (lookup->property_details().location() == kField) { | 2045 if (lookup->property_details().location() == kField) { |
2046 TRACE_HANDLER_STATS(isolate(), StoreIC_StoreFieldDH); | 2046 TRACE_HANDLER_STATS(isolate(), StoreIC_StoreFieldDH); |
2047 int descriptor = lookup->GetFieldDescriptorIndex(); | 2047 int descriptor = lookup->GetFieldDescriptorIndex(); |
2048 FieldIndex index = lookup->GetFieldIndex(); | 2048 FieldIndex index = lookup->GetFieldIndex(); |
2049 return StoreHandler::StoreField(isolate(), descriptor, index, | 2049 return StoreHandler::StoreField(isolate(), descriptor, index, |
| 2050 lookup->constness(), |
2050 lookup->representation()); | 2051 lookup->representation()); |
2051 } | 2052 } |
2052 | 2053 |
2053 // -------------- Constant properties -------------- | 2054 // -------------- Constant properties -------------- |
2054 DCHECK_EQ(kDescriptor, lookup->property_details().location()); | 2055 DCHECK_EQ(kDescriptor, lookup->property_details().location()); |
2055 TRACE_GENERIC_IC(isolate(), "StoreIC", "constant property"); | 2056 TRACE_GENERIC_IC(isolate(), "StoreIC", "constant property"); |
2056 TRACE_HANDLER_STATS(isolate(), StoreIC_SlowStub); | 2057 TRACE_HANDLER_STATS(isolate(), StoreIC_SlowStub); |
2057 return slow_stub(); | 2058 return slow_stub(); |
2058 } | 2059 } |
2059 | 2060 |
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3199 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); | 3200 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); |
3200 it.Next(); | 3201 it.Next(); |
3201 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, | 3202 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, |
3202 Object::GetProperty(&it)); | 3203 Object::GetProperty(&it)); |
3203 } | 3204 } |
3204 | 3205 |
3205 return *result; | 3206 return *result; |
3206 } | 3207 } |
3207 } // namespace internal | 3208 } // namespace internal |
3208 } // namespace v8 | 3209 } // namespace v8 |
OLD | NEW |