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

Side by Side Diff: src/contexts.h

Issue 2674593003: [TypeFeedbackVector] Root feedback vectors at function literal site. (Closed)
Patch Set: REBASE+liveedit fix. Created 3 years, 10 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/compiler/js-native-context-specialization.cc ('k') | src/contexts.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 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 #ifndef V8_CONTEXTS_H_ 5 #ifndef V8_CONTEXTS_H_
6 #define V8_CONTEXTS_H_ 6 #define V8_CONTEXTS_H_
7 7
8 #include "src/heap/heap.h" 8 #include "src/heap/heap.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 10
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 // Removes a specific optimized code object from the optimized code map. 568 // Removes a specific optimized code object from the optimized code map.
569 // In case of non-OSR the code reference is cleared from the cache entry but 569 // In case of non-OSR the code reference is cleared from the cache entry but
570 // the entry itself is left in the map in order to proceed sharing literals. 570 // the entry itself is left in the map in order to proceed sharing literals.
571 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason); 571 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason);
572 572
573 // Clear optimized code map. 573 // Clear optimized code map.
574 void ClearOptimizedCodeMap(); 574 void ClearOptimizedCodeMap();
575 575
576 // A native context keeps track of all osrd optimized functions. 576 // A native context keeps track of all osrd optimized functions.
577 inline bool OptimizedCodeMapIsCleared(); 577 inline bool OptimizedCodeMapIsCleared();
578 void SearchOptimizedCodeMap(SharedFunctionInfo* shared, BailoutId osr_ast_id, 578 Code* SearchOptimizedCodeMap(SharedFunctionInfo* shared,
579 Code** pcode, TypeFeedbackVector** pvector); 579 BailoutId osr_ast_id);
580 int SearchOptimizedCodeMapEntry(SharedFunctionInfo* shared, 580 int SearchOptimizedCodeMapEntry(SharedFunctionInfo* shared,
581 BailoutId osr_ast_id); 581 BailoutId osr_ast_id);
582 582
583 static void AddToOptimizedCodeMap(Handle<Context> native_context, 583 static void AddToOptimizedCodeMap(Handle<Context> native_context,
584 Handle<SharedFunctionInfo> shared, 584 Handle<SharedFunctionInfo> shared,
585 Handle<Code> code, 585 Handle<Code> code,
586 Handle<TypeFeedbackVector> vector,
587 BailoutId osr_ast_id); 586 BailoutId osr_ast_id);
588 587
589 // A native context holds a list of all functions with optimized code. 588 // A native context holds a list of all functions with optimized code.
590 void AddOptimizedFunction(JSFunction* function); 589 void AddOptimizedFunction(JSFunction* function);
591 void RemoveOptimizedFunction(JSFunction* function); 590 void RemoveOptimizedFunction(JSFunction* function);
592 void SetOptimizedFunctionsListHead(Object* head); 591 void SetOptimizedFunctionsListHead(Object* head);
593 Object* OptimizedFunctionsListHead(); 592 Object* OptimizedFunctionsListHead();
594 593
595 // The native context also stores a list of all optimized code and a 594 // The native context also stores a list of all optimized code and a
596 // list of all deoptimized code, which are needed by the deoptimizer. 595 // list of all deoptimized code, which are needed by the deoptimizer.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 693 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
695 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 694 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
696 }; 695 };
697 696
698 typedef Context::Field ContextField; 697 typedef Context::Field ContextField;
699 698
700 } // namespace internal 699 } // namespace internal
701 } // namespace v8 700 } // namespace v8
702 701
703 #endif // V8_CONTEXTS_H_ 702 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/contexts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698