| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef V8_TYPE_FEEDBACK_VECTOR_H_ | 5 #ifndef V8_TYPE_FEEDBACK_VECTOR_H_ |
| 6 #define V8_TYPE_FEEDBACK_VECTOR_H_ | 6 #define V8_TYPE_FEEDBACK_VECTOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/checks.h" | 10 #include "src/checks.h" |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 CallICNexus(TypeFeedbackVector* vector, FeedbackVectorICSlot slot) | 348 CallICNexus(TypeFeedbackVector* vector, FeedbackVectorICSlot slot) |
| 349 : FeedbackNexus(vector, slot) { | 349 : FeedbackNexus(vector, slot) { |
| 350 DCHECK(vector->GetKind(slot) == Code::CALL_IC); | 350 DCHECK(vector->GetKind(slot) == Code::CALL_IC); |
| 351 } | 351 } |
| 352 | 352 |
| 353 void Clear(Code* host); | 353 void Clear(Code* host); |
| 354 | 354 |
| 355 void ConfigureUninitialized(); | 355 void ConfigureUninitialized(); |
| 356 void ConfigureGeneric(); | 356 void ConfigureGeneric(); |
| 357 void ConfigureMonomorphicArray(); | 357 void ConfigureMonomorphicArray(); |
| 358 void ConfigureMonomorphicMathFunction(Handle<JSFunction> function); |
| 358 void ConfigureMonomorphic(Handle<JSFunction> function); | 359 void ConfigureMonomorphic(Handle<JSFunction> function); |
| 359 | 360 |
| 360 InlineCacheState StateFromFeedback() const override; | 361 InlineCacheState StateFromFeedback() const override; |
| 361 | 362 |
| 362 int ExtractMaps(MapHandleList* maps) const override { | 363 int ExtractMaps(MapHandleList* maps) const override { |
| 363 // CallICs don't record map feedback. | 364 // CallICs don't record map feedback. |
| 364 return 0; | 365 return 0; |
| 365 } | 366 } |
| 366 MaybeHandle<Code> FindHandlerForMap(Handle<Map> map) const override { | 367 MaybeHandle<Code> FindHandlerForMap(Handle<Map> map) const override { |
| 367 return MaybeHandle<Code>(); | 368 return MaybeHandle<Code>(); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 void ConfigurePolymorphic(Handle<Name> name, MapHandleList* maps, | 419 void ConfigurePolymorphic(Handle<Name> name, MapHandleList* maps, |
| 419 CodeHandleList* handlers); | 420 CodeHandleList* handlers); |
| 420 | 421 |
| 421 InlineCacheState StateFromFeedback() const override; | 422 InlineCacheState StateFromFeedback() const override; |
| 422 Name* FindFirstName() const override; | 423 Name* FindFirstName() const override; |
| 423 }; | 424 }; |
| 424 } | 425 } |
| 425 } // namespace v8::internal | 426 } // namespace v8::internal |
| 426 | 427 |
| 427 #endif // V8_TRANSITIONS_H_ | 428 #endif // V8_TRANSITIONS_H_ |
| OLD | NEW |