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

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

Issue 1670813005: Revert of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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.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.h" 10 #include "src/ast/ast.h"
(...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2183 } 2183 }
2184 HBasicBlock* function_return() const { 2184 HBasicBlock* function_return() const {
2185 return function_state()->function_return(); 2185 return function_state()->function_return();
2186 } 2186 }
2187 TestContext* inlined_test_context() const { 2187 TestContext* inlined_test_context() const {
2188 return function_state()->test_context(); 2188 return function_state()->test_context();
2189 } 2189 }
2190 Handle<SharedFunctionInfo> current_shared_info() const { 2190 Handle<SharedFunctionInfo> current_shared_info() const {
2191 return current_info()->shared_info(); 2191 return current_info()->shared_info();
2192 } 2192 }
2193 Handle<JSFunction> current_closure() const {
2194 return current_info()->closure();
2195 }
2196 TypeFeedbackVector* current_feedback_vector() const { 2193 TypeFeedbackVector* current_feedback_vector() const {
2197 return current_closure()->feedback_vector(); 2194 return current_shared_info()->feedback_vector();
2198 } 2195 }
2199 void ClearInlinedTestContext() { 2196 void ClearInlinedTestContext() {
2200 function_state()->ClearInlinedTestContext(); 2197 function_state()->ClearInlinedTestContext();
2201 } 2198 }
2202 LanguageMode function_language_mode() { 2199 LanguageMode function_language_mode() {
2203 return function_state()->compilation_info()->language_mode(); 2200 return function_state()->compilation_info()->language_mode();
2204 } 2201 }
2205 2202
2206 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ 2203 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \
2207 F(IsSmi) \ 2204 F(IsSmi) \
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
3066 3063
3067 private: 3064 private:
3068 HGraphBuilder* builder_; 3065 HGraphBuilder* builder_;
3069 }; 3066 };
3070 3067
3071 3068
3072 } // namespace internal 3069 } // namespace internal
3073 } // namespace v8 3070 } // namespace v8
3074 3071
3075 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3072 #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