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

Side by Side Diff: src/compiler/ast-graph-builder.h

Issue 894683003: Introduce LanguageMode, drop StrictMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: . Created 5 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_COMPILER_AST_GRAPH_BUILDER_H_ 5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_
6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/ast.h" 10 #include "src/ast.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 SetOncePointer<Node> function_closure_; 147 SetOncePointer<Node> function_closure_;
148 SetOncePointer<Node> function_context_; 148 SetOncePointer<Node> function_context_;
149 149
150 // The node representing the OSR entry into the loop, if any. 150 // The node representing the OSR entry into the loop, if any.
151 SetOncePointer<Node> osr_loop_entry_; 151 SetOncePointer<Node> osr_loop_entry_;
152 152
153 // Result of loop assignment analysis performed before graph creation. 153 // Result of loop assignment analysis performed before graph creation.
154 LoopAssignmentAnalysis* loop_assignment_analysis_; 154 LoopAssignmentAnalysis* loop_assignment_analysis_;
155 155
156 CompilationInfo* info() const { return info_; } 156 CompilationInfo* info() const { return info_; }
157 inline StrictMode strict_mode() const; 157 inline LanguageMode language_mode() const;
158 JSGraph* jsgraph() { return jsgraph_; } 158 JSGraph* jsgraph() { return jsgraph_; }
159 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); } 159 JSOperatorBuilder* javascript() { return jsgraph_->javascript(); }
160 ZoneVector<Handle<Object>>* globals() { return &globals_; } 160 ZoneVector<Handle<Object>>* globals() { return &globals_; }
161 161
162 // Current scope during visitation. 162 // Current scope during visitation.
163 inline Scope* current_scope() const; 163 inline Scope* current_scope() const;
164 164
165 // Named and keyed loads require a VectorSlotPair for successful lowering. 165 // Named and keyed loads require a VectorSlotPair for successful lowering.
166 VectorSlotPair CreateVectorSlotPair(FeedbackVectorICSlot slot) const; 166 VectorSlotPair CreateVectorSlotPair(FeedbackVectorICSlot slot) const;
167 167
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 458
459 Scope* AstGraphBuilder::current_scope() const { 459 Scope* AstGraphBuilder::current_scope() const {
460 return execution_context_->scope(); 460 return execution_context_->scope();
461 } 461 }
462 462
463 } // namespace compiler 463 } // namespace compiler
464 } // namespace internal 464 } // namespace internal
465 } // namespace v8 465 } // namespace v8
466 466
467 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 467 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | src/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698