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

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: Ports. Created 4 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
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 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2176 } 2176 }
2177 HBasicBlock* function_return() const { 2177 HBasicBlock* function_return() const {
2178 return function_state()->function_return(); 2178 return function_state()->function_return();
2179 } 2179 }
2180 TestContext* inlined_test_context() const { 2180 TestContext* inlined_test_context() const {
2181 return function_state()->test_context(); 2181 return function_state()->test_context();
2182 } 2182 }
2183 Handle<SharedFunctionInfo> current_shared_info() const { 2183 Handle<SharedFunctionInfo> current_shared_info() const {
2184 return current_info()->shared_info(); 2184 return current_info()->shared_info();
2185 } 2185 }
2186 Handle<JSFunction> current_closure() const {
2187 return current_info()->closure();
2188 }
2186 TypeFeedbackVector* current_feedback_vector() const { 2189 TypeFeedbackVector* current_feedback_vector() const {
2187 return current_shared_info()->feedback_vector(); 2190 return current_closure()->feedback_vector();
2188 } 2191 }
2189 void ClearInlinedTestContext() { 2192 void ClearInlinedTestContext() {
2190 function_state()->ClearInlinedTestContext(); 2193 function_state()->ClearInlinedTestContext();
2191 } 2194 }
2192 LanguageMode function_language_mode() { 2195 LanguageMode function_language_mode() {
2193 return function_state()->compilation_info()->language_mode(); 2196 return function_state()->compilation_info()->language_mode();
2194 } 2197 }
2195 2198
2196 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ 2199 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \
2197 F(IsSmi) \ 2200 F(IsSmi) \
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
3057 3060
3058 private: 3061 private:
3059 HGraphBuilder* builder_; 3062 HGraphBuilder* builder_;
3060 }; 3063 };
3061 3064
3062 3065
3063 } // namespace internal 3066 } // namespace internal
3064 } // namespace v8 3067 } // namespace v8
3065 3068
3066 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3069 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698