Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2566)

Side by Side Diff: src/type-feedback-vector.h

Issue 1053143005: Collect type feedback on result of Math.[round|ceil|floor] (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: MIPS port Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/snapshot/serialize.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/snapshot/serialize.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698