| 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(Runtime_StoreIC_MissFromStubFailure) { | 2473 RUNTIME_FUNCTION(Runtime_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 | |
| 2485 if (FLAG_vector_stores) { | 2481 if (FLAG_vector_stores) { |
| 2486 DCHECK(args.length() == 5 || args.length() == 6); | 2482 DCHECK(args.length() == 5 || args.length() == 6); |
| 2487 Handle<Smi> slot = args.at<Smi>(3); | 2483 Handle<Smi> slot = args.at<Smi>(3); |
| 2488 Handle<TypeFeedbackVector> vector = args.at<TypeFeedbackVector>(4); | 2484 Handle<TypeFeedbackVector> vector = args.at<TypeFeedbackVector>(4); |
| 2489 FeedbackVectorICSlot vector_slot = vector->ToICSlot(slot->value()); | 2485 FeedbackVectorICSlot vector_slot = vector->ToICSlot(slot->value()); |
| 2490 if (vector->GetKind(vector_slot) == Code::STORE_IC) { | 2486 if (vector->GetKind(vector_slot) == Code::STORE_IC) { |
| 2491 StoreICNexus nexus(vector, vector_slot); | 2487 StoreICNexus nexus(vector, vector_slot); |
| 2492 StoreIC ic(IC::EXTRA_CALL_FRAME, isolate, &nexus); | 2488 StoreIC ic(IC::EXTRA_CALL_FRAME, isolate, &nexus); |
| 2493 ic.UpdateState(receiver, key); | 2489 ic.UpdateState(receiver, key); |
| 2494 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, | 2490 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3087 KeyedLoadICNexus nexus(vector, vector_slot); | 3083 KeyedLoadICNexus nexus(vector, vector_slot); |
| 3088 KeyedLoadIC ic(IC::EXTRA_CALL_FRAME, isolate, &nexus); | 3084 KeyedLoadIC ic(IC::EXTRA_CALL_FRAME, isolate, &nexus); |
| 3089 ic.UpdateState(receiver, key); | 3085 ic.UpdateState(receiver, key); |
| 3090 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, ic.Load(receiver, key)); | 3086 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, ic.Load(receiver, key)); |
| 3091 } | 3087 } |
| 3092 | 3088 |
| 3093 return *result; | 3089 return *result; |
| 3094 } | 3090 } |
| 3095 } // namespace internal | 3091 } // namespace internal |
| 3096 } // namespace v8 | 3092 } // namespace v8 |
| OLD | NEW |