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

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

Issue 1563213002: Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Exclude an ignition test. 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-typed-lowering.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 }
2193 TypeFeedbackVector* current_feedback_vector() const { 2196 TypeFeedbackVector* current_feedback_vector() const {
2194 return current_shared_info()->feedback_vector(); 2197 return current_closure()->feedback_vector();
2195 } 2198 }
2196 void ClearInlinedTestContext() { 2199 void ClearInlinedTestContext() {
2197 function_state()->ClearInlinedTestContext(); 2200 function_state()->ClearInlinedTestContext();
2198 } 2201 }
2199 LanguageMode function_language_mode() { 2202 LanguageMode function_language_mode() {
2200 return function_state()->compilation_info()->language_mode(); 2203 return function_state()->compilation_info()->language_mode();
2201 } 2204 }
2202 2205
2203 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ 2206 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \
2204 F(IsSmi) \ 2207 F(IsSmi) \
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
3064 3067
3065 private: 3068 private:
3066 HGraphBuilder* builder_; 3069 HGraphBuilder* builder_;
3067 }; 3070 };
3068 3071
3069 3072
3070 } // namespace internal 3073 } // namespace internal
3071 } // namespace v8 3074 } // namespace v8
3072 3075
3073 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3076 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698