| 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/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 2586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2597 Runtime::SetObjectProperty(isolate, object, key, value, language_mode)); | 2597 Runtime::SetObjectProperty(isolate, object, key, value, language_mode)); |
| 2598 return *result; | 2598 return *result; |
| 2599 } | 2599 } |
| 2600 | 2600 |
| 2601 | 2601 |
| 2602 RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss) { | 2602 RUNTIME_FUNCTION(ElementsTransitionAndStoreIC_Miss) { |
| 2603 TimerEventScope<TimerEventIcMiss> timer(isolate); | 2603 TimerEventScope<TimerEventIcMiss> timer(isolate); |
| 2604 HandleScope scope(isolate); | 2604 HandleScope scope(isolate); |
| 2605 DCHECK(args.length() == 4); | 2605 DCHECK(args.length() == 4); |
| 2606 KeyedStoreIC ic(IC::EXTRA_CALL_FRAME, isolate); | 2606 KeyedStoreIC ic(IC::EXTRA_CALL_FRAME, isolate); |
| 2607 Handle<Object> value = args.at<Object>(0); | 2607 Handle<Object> object = args.at<Object>(0); |
| 2608 Handle<Map> map = args.at<Map>(1); | 2608 Handle<Object> key = args.at<Object>(1); |
| 2609 Handle<Object> key = args.at<Object>(2); | 2609 Handle<Object> value = args.at<Object>(2); |
| 2610 Handle<Object> object = args.at<Object>(3); | 2610 Handle<Map> map = args.at<Map>(3); |
| 2611 |
| 2611 LanguageMode language_mode = ic.language_mode(); | 2612 LanguageMode language_mode = ic.language_mode(); |
| 2612 if (object->IsJSObject()) { | 2613 if (object->IsJSObject()) { |
| 2613 JSObject::TransitionElementsKind(Handle<JSObject>::cast(object), | 2614 JSObject::TransitionElementsKind(Handle<JSObject>::cast(object), |
| 2614 map->elements_kind()); | 2615 map->elements_kind()); |
| 2615 } | 2616 } |
| 2616 Handle<Object> result; | 2617 Handle<Object> result; |
| 2617 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 2618 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
| 2618 isolate, result, | 2619 isolate, result, |
| 2619 Runtime::SetObjectProperty(isolate, object, key, value, language_mode)); | 2620 Runtime::SetObjectProperty(isolate, object, key, value, language_mode)); |
| 2620 return *result; | 2621 return *result; |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3092 static const Address IC_utilities[] = { | 3093 static const Address IC_utilities[] = { |
| 3093 #define ADDR(name) FUNCTION_ADDR(name), | 3094 #define ADDR(name) FUNCTION_ADDR(name), |
| 3094 IC_UTIL_LIST(ADDR) NULL | 3095 IC_UTIL_LIST(ADDR) NULL |
| 3095 #undef ADDR | 3096 #undef ADDR |
| 3096 }; | 3097 }; |
| 3097 | 3098 |
| 3098 | 3099 |
| 3099 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } | 3100 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } |
| 3100 } // namespace internal | 3101 } // namespace internal |
| 3101 } // namespace v8 | 3102 } // namespace v8 |
| OLD | NEW |