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

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

Issue 1949013002: [compiler] Remove dangerous language mode accessors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/crankshaft/arm/lithium-codegen-arm.h ('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 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after
2239 Handle<SharedFunctionInfo> current_shared_info() const { 2239 Handle<SharedFunctionInfo> current_shared_info() const {
2240 return current_info()->shared_info(); 2240 return current_info()->shared_info();
2241 } 2241 }
2242 TypeFeedbackVector* current_feedback_vector() const { 2242 TypeFeedbackVector* current_feedback_vector() const {
2243 return current_shared_info()->feedback_vector(); 2243 return current_shared_info()->feedback_vector();
2244 } 2244 }
2245 void ClearInlinedTestContext() { 2245 void ClearInlinedTestContext() {
2246 function_state()->ClearInlinedTestContext(); 2246 function_state()->ClearInlinedTestContext();
2247 } 2247 }
2248 LanguageMode function_language_mode() { 2248 LanguageMode function_language_mode() {
2249 return function_state()->compilation_info()->language_mode(); 2249 return function_state()->compilation_info()->parse_info()->language_mode();
2250 } 2250 }
2251 2251
2252 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \ 2252 #define FOR_EACH_HYDROGEN_INTRINSIC(F) \
2253 F(IsSmi) \ 2253 F(IsSmi) \
2254 F(IsArray) \ 2254 F(IsArray) \
2255 F(IsTypedArray) \ 2255 F(IsTypedArray) \
2256 F(IsRegExp) \ 2256 F(IsRegExp) \
2257 F(IsJSProxy) \ 2257 F(IsJSProxy) \
2258 F(Call) \ 2258 F(Call) \
2259 F(NewObject) \ 2259 F(NewObject) \
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
3111 } 3111 }
3112 3112
3113 private: 3113 private:
3114 HOptimizedGraphBuilder* builder_; 3114 HOptimizedGraphBuilder* builder_;
3115 }; 3115 };
3116 3116
3117 } // namespace internal 3117 } // namespace internal
3118 } // namespace v8 3118 } // namespace v8
3119 3119
3120 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3120 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.h ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698