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

Side by Side Diff: src/objects.h

Issue 2626783003: [turbofan] Enable inlining based on SharedFunctionInfo. (Closed)
Patch Set: Rebased. 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-inlining-heuristic.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 7073 matching lines...) Expand 10 before | Expand all | Expand 10 after
7084 // We have a special root FixedArray with the right shape and values 7084 // We have a special root FixedArray with the right shape and values
7085 // to represent the cleared optimized code map. This predicate checks 7085 // to represent the cleared optimized code map. This predicate checks
7086 // if that root is installed. 7086 // if that root is installed.
7087 inline bool OptimizedCodeMapIsCleared() const; 7087 inline bool OptimizedCodeMapIsCleared() const;
7088 7088
7089 // Removes a specific optimized code object from the optimized code map. 7089 // Removes a specific optimized code object from the optimized code map.
7090 // In case of non-OSR the code reference is cleared from the cache entry but 7090 // In case of non-OSR the code reference is cleared from the cache entry but
7091 // the entry itself is left in the map in order to proceed sharing literals. 7091 // the entry itself is left in the map in order to proceed sharing literals.
7092 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason); 7092 void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason);
7093 7093
7094 static Handle<TypeFeedbackVector> FindOrCreateVector(
7095 Handle<SharedFunctionInfo> shared, Handle<Context> native_context);
7096
7097 // Add or update entry in the optimized code map for context-dependent code. 7094 // Add or update entry in the optimized code map for context-dependent code.
7098 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared, 7095 static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared,
7099 Handle<Context> native_context, 7096 Handle<Context> native_context,
7100 Handle<Code> code, BailoutId osr_ast_id); 7097 Handle<Code> code, BailoutId osr_ast_id);
7101 7098
7102 // Set up the link between shared function info and the script. The shared 7099 // Set up the link between shared function info and the script. The shared
7103 // function info is added to the list on the script. 7100 // function info is added to the list on the script.
7104 V8_EXPORT_PRIVATE static void SetScript(Handle<SharedFunctionInfo> shared, 7101 V8_EXPORT_PRIVATE static void SetScript(Handle<SharedFunctionInfo> shared,
7105 Handle<Object> script_object); 7102 Handle<Object> script_object);
7106 7103
(...skipping 4529 matching lines...) Expand 10 before | Expand all | Expand 10 after
11636 } 11633 }
11637 }; 11634 };
11638 11635
11639 11636
11640 } // NOLINT, false-positive due to second-order macros. 11637 } // NOLINT, false-positive due to second-order macros.
11641 } // NOLINT, false-positive due to second-order macros. 11638 } // NOLINT, false-positive due to second-order macros.
11642 11639
11643 #include "src/objects/object-macros-undef.h" 11640 #include "src/objects/object-macros-undef.h"
11644 11641
11645 #endif // V8_OBJECTS_H_ 11642 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/compiler/js-inlining-heuristic.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698