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 "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api-arguments-inl.h" | 8 #include "src/api-arguments-inl.h" |
9 #include "src/api.h" | 9 #include "src/api.h" |
10 #include "src/arguments.h" | 10 #include "src/arguments.h" |
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1429 if ((object->IsJSObject() && key->IsSmi()) || | 1429 if ((object->IsJSObject() && key->IsSmi()) || |
1430 (object->IsString() && key->IsNumber())) { | 1430 (object->IsString() && key->IsNumber())) { |
1431 UpdateLoadElement(Handle<HeapObject>::cast(object)); | 1431 UpdateLoadElement(Handle<HeapObject>::cast(object)); |
1432 TRACE_IC("LoadIC", key); | 1432 TRACE_IC("LoadIC", key); |
1433 } | 1433 } |
1434 } | 1434 } |
1435 | 1435 |
1436 if (!is_vector_set()) { | 1436 if (!is_vector_set()) { |
1437 ConfigureVectorState(MEGAMORPHIC, key); | 1437 ConfigureVectorState(MEGAMORPHIC, key); |
1438 TRACE_GENERIC_IC(isolate(), "KeyedLoadIC", "set generic"); | 1438 TRACE_GENERIC_IC(isolate(), "KeyedLoadIC", "set generic"); |
| 1439 TRACE_IC("LoadIC", key); |
1439 } | 1440 } |
1440 | 1441 |
1441 if (!load_handle.is_null()) return load_handle; | 1442 if (!load_handle.is_null()) return load_handle; |
1442 | 1443 |
1443 Handle<Object> result; | 1444 Handle<Object> result; |
1444 ASSIGN_RETURN_ON_EXCEPTION(isolate(), result, | 1445 ASSIGN_RETURN_ON_EXCEPTION(isolate(), result, |
1445 Runtime::GetObjectProperty(isolate(), object, key), | 1446 Runtime::GetObjectProperty(isolate(), object, key), |
1446 Object); | 1447 Object); |
1447 return result; | 1448 return result; |
1448 } | 1449 } |
(...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2920 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); | 2921 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); |
2921 it.Next(); | 2922 it.Next(); |
2922 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, | 2923 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, |
2923 Object::GetProperty(&it)); | 2924 Object::GetProperty(&it)); |
2924 } | 2925 } |
2925 | 2926 |
2926 return *result; | 2927 return *result; |
2927 } | 2928 } |
2928 } // namespace internal | 2929 } // namespace internal |
2929 } // namespace v8 | 2930 } // namespace v8 |
OLD | NEW |