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

Side by Side Diff: src/crankshaft/hydrogen.h

Issue 1906823002: Move of the type feedback vector to the closure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 years, 6 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.cc ('k') | src/crankshaft/hydrogen.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_CRANKSHAFT_HYDROGEN_H_ 5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_
6 #define V8_CRANKSHAFT_HYDROGEN_H_ 6 #define V8_CRANKSHAFT_HYDROGEN_H_
7 7
8 #include "src/accessors.h" 8 #include "src/accessors.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/ast/ast-type-bounds.h" 10 #include "src/ast/ast-type-bounds.h"
(...skipping 2223 matching lines...) Expand 10 before | Expand all | Expand 10 after
2234 } 2234 }
2235 AstContext* call_context() const { 2235 AstContext* call_context() const {
2236 return function_state()->call_context(); 2236 return function_state()->call_context();
2237 } 2237 }
2238 HBasicBlock* function_return() const { 2238 HBasicBlock* function_return() const {
2239 return function_state()->function_return(); 2239 return function_state()->function_return();
2240 } 2240 }
2241 TestContext* inlined_test_context() const { 2241 TestContext* inlined_test_context() const {
2242 return function_state()->test_context(); 2242 return function_state()->test_context();
2243 } 2243 }
2244 Handle<JSFunction> current_closure() const {
2245 return current_info()->closure();
2246 }
2244 Handle<SharedFunctionInfo> current_shared_info() const { 2247 Handle<SharedFunctionInfo> current_shared_info() const {
2245 return current_info()->shared_info(); 2248 return current_info()->shared_info();
2246 } 2249 }
2247 TypeFeedbackVector* current_feedback_vector() const { 2250 TypeFeedbackVector* current_feedback_vector() const {
2248 return current_shared_info()->feedback_vector(); 2251 return current_closure()->feedback_vector();
2249 } 2252 }
2250 void ClearInlinedTestContext() { 2253 void ClearInlinedTestContext() {
2251 function_state()->ClearInlinedTestContext(); 2254 function_state()->ClearInlinedTestContext();
2252 } 2255 }
2253 LanguageMode function_language_mode() { 2256 LanguageMode function_language_mode() {
2254 return function_state()->compilation_info()->parse_info()->language_mode(); 2257 return function_state()->compilation_info()->parse_info()->language_mode();
2255 } 2258 }
2256 2259
2257 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ 2260 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \
2258 F(IsSmi) \ 2261 F(IsSmi) \
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
3103 } 3106 }
3104 3107
3105 private: 3108 private:
3106 HOptimizedGraphBuilder* builder_; 3109 HOptimizedGraphBuilder* builder_;
3107 }; 3110 };
3108 3111
3109 } // namespace internal 3112 } // namespace internal
3110 } // namespace v8 3113 } // namespace v8
3111 3114
3112 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3115 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698