| 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 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 // Indicate that we've handled this case. | 825 // Indicate that we've handled this case. |
| 826 DCHECK(UseVector()); | 826 DCHECK(UseVector()); |
| 827 vector_set_ = true; | 827 vector_set_ = true; |
| 828 break; | 828 break; |
| 829 case GENERIC: | 829 case GENERIC: |
| 830 UNREACHABLE(); | 830 UNREACHABLE(); |
| 831 break; | 831 break; |
| 832 } | 832 } |
| 833 } | 833 } |
| 834 | 834 |
| 835 Handle<Code> KeyedStoreIC::ChooseMegamorphicStub(Isolate* isolate, | |
| 836 ExtraICState extra_state) { | |
| 837 DCHECK(!FLAG_tf_store_ic_stub); | |
| 838 LanguageMode mode = StoreICState::GetLanguageMode(extra_state); | |
| 839 return is_strict(mode) | |
| 840 ? isolate->builtins()->KeyedStoreIC_Megamorphic_Strict() | |
| 841 : isolate->builtins()->KeyedStoreIC_Megamorphic(); | |
| 842 } | |
| 843 | |
| 844 Handle<Object> LoadIC::SimpleFieldLoad(FieldIndex index) { | 835 Handle<Object> LoadIC::SimpleFieldLoad(FieldIndex index) { |
| 845 if (FLAG_tf_load_ic_stub) { | 836 if (FLAG_tf_load_ic_stub) { |
| 846 TRACE_HANDLER_STATS(isolate(), LoadIC_LoadFieldDH); | 837 TRACE_HANDLER_STATS(isolate(), LoadIC_LoadFieldDH); |
| 847 return LoadHandler::LoadField(isolate(), index); | 838 return LoadHandler::LoadField(isolate(), index); |
| 848 } | 839 } |
| 849 TRACE_HANDLER_STATS(isolate(), LoadIC_LoadFieldStub); | 840 TRACE_HANDLER_STATS(isolate(), LoadIC_LoadFieldStub); |
| 850 LoadFieldStub stub(isolate(), index); | 841 LoadFieldStub stub(isolate(), index); |
| 851 return stub.GetCode(); | 842 return stub.GetCode(); |
| 852 } | 843 } |
| 853 | 844 |
| (...skipping 2383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3237 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); | 3228 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); |
| 3238 it.Next(); | 3229 it.Next(); |
| 3239 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, | 3230 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, |
| 3240 Object::GetProperty(&it)); | 3231 Object::GetProperty(&it)); |
| 3241 } | 3232 } |
| 3242 | 3233 |
| 3243 return *result; | 3234 return *result; |
| 3244 } | 3235 } |
| 3245 } // namespace internal | 3236 } // namespace internal |
| 3246 } // namespace v8 | 3237 } // namespace v8 |
| OLD | NEW |