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

Side by Side Diff: src/contexts.h

Issue 2642743002: Revert [TypeFeedbackVector] Root literal arrays in function literal slots (Closed)
Patch Set: Altered test for wasm. Created 3 years, 11 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 // Removes a specific optimized code object from the optimized code map. 564 // Removes a specific optimized code object from the optimized code map.
565 // In case of non-OSR the code reference is cleared from the cache entry but 565 // In case of non-OSR the code reference is cleared from the cache entry but
566 // the entry itself is left in the map in order to proceed sharing literals. 566 // the entry itself is left in the map in order to proceed sharing literals.
567 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason); 567 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason);
568 568
569 // Clear optimized code map. 569 // Clear optimized code map.
570 void ClearOptimizedCodeMap(); 570 void ClearOptimizedCodeMap();
571 571
572 // A native context keeps track of all osrd optimized functions. 572 // A native context keeps track of all osrd optimized functions.
573 inline bool OptimizedCodeMapIsCleared(); 573 inline bool OptimizedCodeMapIsCleared();
574 Code* SearchOptimizedCodeMap(SharedFunctionInfo* shared, 574 void SearchOptimizedCodeMap(SharedFunctionInfo* shared, BailoutId osr_ast_id,
575 BailoutId osr_ast_id); 575 Code** pcode, LiteralsArray** pliterals);
576 int SearchOptimizedCodeMapEntry(SharedFunctionInfo* shared, 576 int SearchOptimizedCodeMapEntry(SharedFunctionInfo* shared,
577 BailoutId osr_ast_id); 577 BailoutId osr_ast_id);
578 578
579 static void AddToOptimizedCodeMap(Handle<Context> native_context, 579 static void AddToOptimizedCodeMap(Handle<Context> native_context,
580 Handle<SharedFunctionInfo> shared, 580 Handle<SharedFunctionInfo> shared,
581 Handle<Code> code, 581 Handle<Code> code,
582 Handle<LiteralsArray> literals,
582 BailoutId osr_ast_id); 583 BailoutId osr_ast_id);
583 584
584 // A native context holds a list of all functions with optimized code. 585 // A native context holds a list of all functions with optimized code.
585 void AddOptimizedFunction(JSFunction* function); 586 void AddOptimizedFunction(JSFunction* function);
586 void RemoveOptimizedFunction(JSFunction* function); 587 void RemoveOptimizedFunction(JSFunction* function);
587 void SetOptimizedFunctionsListHead(Object* head); 588 void SetOptimizedFunctionsListHead(Object* head);
588 Object* OptimizedFunctionsListHead(); 589 Object* OptimizedFunctionsListHead();
589 590
590 // The native context also stores a list of all optimized code and a 591 // The native context also stores a list of all optimized code and a
591 // list of all deoptimized code, which are needed by the deoptimizer. 592 // list of all deoptimized code, which are needed by the deoptimizer.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 690 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
690 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 691 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
691 }; 692 };
692 693
693 typedef Context::Field ContextField; 694 typedef Context::Field ContextField;
694 695
695 } // namespace internal 696 } // namespace internal
696 } // namespace v8 697 } // namespace v8
697 698
698 #endif // V8_CONTEXTS_H_ 699 #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