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 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2471 | 2471 |
2472 | 2472 |
2473 RUNTIME_FUNCTION(StoreIC_MissFromStubFailure) { | 2473 RUNTIME_FUNCTION(StoreIC_MissFromStubFailure) { |
2474 TimerEventScope<TimerEventIcMiss> timer(isolate); | 2474 TimerEventScope<TimerEventIcMiss> timer(isolate); |
2475 HandleScope scope(isolate); | 2475 HandleScope scope(isolate); |
2476 Handle<Object> receiver = args.at<Object>(0); | 2476 Handle<Object> receiver = args.at<Object>(0); |
2477 Handle<Name> key = args.at<Name>(1); | 2477 Handle<Name> key = args.at<Name>(1); |
2478 Handle<Object> value = args.at<Object>(2); | 2478 Handle<Object> value = args.at<Object>(2); |
2479 Handle<Object> result; | 2479 Handle<Object> result; |
2480 | 2480 |
| 2481 // Bailouts from transitioning stores may have the map to transition to as an |
| 2482 // extra argument. |
| 2483 DCHECK(args.length() < 4 || args.at<Object>(3)->IsMap()); |
| 2484 |
2481 if (FLAG_vector_stores) { | 2485 if (FLAG_vector_stores) { |
2482 DCHECK(args.length() == 5); | 2486 DCHECK(args.length() == 5 || args.length() == 6); |
2483 Handle<Smi> slot = args.at<Smi>(3); | 2487 Handle<Smi> slot = args.at<Smi>(3); |
2484 Handle<TypeFeedbackVector> vector = args.at<TypeFeedbackVector>(4); | 2488 Handle<TypeFeedbackVector> vector = args.at<TypeFeedbackVector>(4); |
2485 FeedbackVectorICSlot vector_slot = vector->ToICSlot(slot->value()); | 2489 FeedbackVectorICSlot vector_slot = vector->ToICSlot(slot->value()); |
2486 if (vector->GetKind(vector_slot) == Code::STORE_IC) { | 2490 if (vector->GetKind(vector_slot) == Code::STORE_IC) { |
2487 StoreICNexus nexus(vector, vector_slot); | 2491 StoreICNexus nexus(vector, vector_slot); |
2488 StoreIC ic(IC::EXTRA_CALL_FRAME, isolate, &nexus); | 2492 StoreIC ic(IC::EXTRA_CALL_FRAME, isolate, &nexus); |
2489 ic.UpdateState(receiver, key); | 2493 ic.UpdateState(receiver, key); |
2490 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, | 2494 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, |
2491 ic.Store(receiver, key, value)); | 2495 ic.Store(receiver, key, value)); |
2492 } else { | 2496 } else { |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3093 static const Address IC_utilities[] = { | 3097 static const Address IC_utilities[] = { |
3094 #define ADDR(name) FUNCTION_ADDR(name), | 3098 #define ADDR(name) FUNCTION_ADDR(name), |
3095 IC_UTIL_LIST(ADDR) NULL | 3099 IC_UTIL_LIST(ADDR) NULL |
3096 #undef ADDR | 3100 #undef ADDR |
3097 }; | 3101 }; |
3098 | 3102 |
3099 | 3103 |
3100 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } | 3104 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } |
3101 } // namespace internal | 3105 } // namespace internal |
3102 } // namespace v8 | 3106 } // namespace v8 |
OLD | NEW |