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 2867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2878 | 2878 |
2879 RUNTIME_FUNCTION(Runtime_StoreCallbackProperty) { | 2879 RUNTIME_FUNCTION(Runtime_StoreCallbackProperty) { |
2880 Handle<JSObject> receiver = args.at<JSObject>(0); | 2880 Handle<JSObject> receiver = args.at<JSObject>(0); |
2881 Handle<JSObject> holder = args.at<JSObject>(1); | 2881 Handle<JSObject> holder = args.at<JSObject>(1); |
2882 Handle<HeapObject> callback_or_cell = args.at<HeapObject>(2); | 2882 Handle<HeapObject> callback_or_cell = args.at<HeapObject>(2); |
2883 Handle<Name> name = args.at<Name>(3); | 2883 Handle<Name> name = args.at<Name>(3); |
2884 Handle<Object> value = args.at<Object>(4); | 2884 Handle<Object> value = args.at<Object>(4); |
2885 CONVERT_LANGUAGE_MODE_ARG_CHECKED(language_mode, 5); | 2885 CONVERT_LANGUAGE_MODE_ARG_CHECKED(language_mode, 5); |
2886 HandleScope scope(isolate); | 2886 HandleScope scope(isolate); |
2887 | 2887 |
2888 if (FLAG_runtime_call_stats) { | 2888 if (V8_UNLIKELY(FLAG_runtime_stats)) { |
2889 RETURN_RESULT_OR_FAILURE( | 2889 RETURN_RESULT_OR_FAILURE( |
2890 isolate, Runtime::SetObjectProperty(isolate, receiver, name, value, | 2890 isolate, Runtime::SetObjectProperty(isolate, receiver, name, value, |
2891 language_mode)); | 2891 language_mode)); |
2892 } | 2892 } |
2893 | 2893 |
2894 Handle<AccessorInfo> callback( | 2894 Handle<AccessorInfo> callback( |
2895 callback_or_cell->IsWeakCell() | 2895 callback_or_cell->IsWeakCell() |
2896 ? AccessorInfo::cast(WeakCell::cast(*callback_or_cell)->value()) | 2896 ? AccessorInfo::cast(WeakCell::cast(*callback_or_cell)->value()) |
2897 : AccessorInfo::cast(*callback_or_cell)); | 2897 : AccessorInfo::cast(*callback_or_cell)); |
2898 | 2898 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3069 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); | 3069 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); |
3070 it.Next(); | 3070 it.Next(); |
3071 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, | 3071 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, |
3072 Object::GetProperty(&it)); | 3072 Object::GetProperty(&it)); |
3073 } | 3073 } |
3074 | 3074 |
3075 return *result; | 3075 return *result; |
3076 } | 3076 } |
3077 } // namespace internal | 3077 } // namespace internal |
3078 } // namespace v8 | 3078 } // namespace v8 |
OLD | NEW |