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 2968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2979 | 2979 |
2980 RUNTIME_FUNCTION(Runtime_StoreCallbackProperty) { | 2980 RUNTIME_FUNCTION(Runtime_StoreCallbackProperty) { |
2981 Handle<JSObject> receiver = args.at<JSObject>(0); | 2981 Handle<JSObject> receiver = args.at<JSObject>(0); |
2982 Handle<JSObject> holder = args.at<JSObject>(1); | 2982 Handle<JSObject> holder = args.at<JSObject>(1); |
2983 Handle<HeapObject> callback_or_cell = args.at<HeapObject>(2); | 2983 Handle<HeapObject> callback_or_cell = args.at<HeapObject>(2); |
2984 Handle<Name> name = args.at<Name>(3); | 2984 Handle<Name> name = args.at<Name>(3); |
2985 Handle<Object> value = args.at<Object>(4); | 2985 Handle<Object> value = args.at<Object>(4); |
2986 CONVERT_LANGUAGE_MODE_ARG_CHECKED(language_mode, 5); | 2986 CONVERT_LANGUAGE_MODE_ARG_CHECKED(language_mode, 5); |
2987 HandleScope scope(isolate); | 2987 HandleScope scope(isolate); |
2988 | 2988 |
2989 if (FLAG_runtime_call_stats) { | 2989 if (V8_UNLIKELY(FLAG_runtime_stats)) { |
2990 RETURN_RESULT_OR_FAILURE( | 2990 RETURN_RESULT_OR_FAILURE( |
2991 isolate, Runtime::SetObjectProperty(isolate, receiver, name, value, | 2991 isolate, Runtime::SetObjectProperty(isolate, receiver, name, value, |
2992 language_mode)); | 2992 language_mode)); |
2993 } | 2993 } |
2994 | 2994 |
2995 Handle<AccessorInfo> callback( | 2995 Handle<AccessorInfo> callback( |
2996 callback_or_cell->IsWeakCell() | 2996 callback_or_cell->IsWeakCell() |
2997 ? AccessorInfo::cast(WeakCell::cast(*callback_or_cell)->value()) | 2997 ? AccessorInfo::cast(WeakCell::cast(*callback_or_cell)->value()) |
2998 : AccessorInfo::cast(*callback_or_cell)); | 2998 : AccessorInfo::cast(*callback_or_cell)); |
2999 | 2999 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3170 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); | 3170 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); |
3171 it.Next(); | 3171 it.Next(); |
3172 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, | 3172 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, |
3173 Object::GetProperty(&it)); | 3173 Object::GetProperty(&it)); |
3174 } | 3174 } |
3175 | 3175 |
3176 return *result; | 3176 return *result; |
3177 } | 3177 } |
3178 } // namespace internal | 3178 } // namespace internal |
3179 } // namespace v8 | 3179 } // namespace v8 |
OLD | NEW |