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

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

Issue 2209573002: Separate Scope into DeclarationScope and Scope (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move has_simple_parameters_ to DeclarationScope Created 4 years, 4 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-type-bounds.h" 10 #include "src/ast/ast-type-bounds.h"
(...skipping 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after
2353 // Visit a list of expressions from left to right, each in a value context. 2353 // Visit a list of expressions from left to right, each in a value context.
2354 void VisitExpressions(ZoneList<Expression*>* exprs); 2354 void VisitExpressions(ZoneList<Expression*>* exprs);
2355 void VisitExpressions(ZoneList<Expression*>* exprs, 2355 void VisitExpressions(ZoneList<Expression*>* exprs,
2356 ArgumentsAllowedFlag flag); 2356 ArgumentsAllowedFlag flag);
2357 2357
2358 // Remove the arguments from the bailout environment and emit instructions 2358 // Remove the arguments from the bailout environment and emit instructions
2359 // to push them as outgoing parameters. 2359 // to push them as outgoing parameters.
2360 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); 2360 template <class Instruction> HInstruction* PreProcessCall(Instruction* call);
2361 void PushArgumentsFromEnvironment(int count); 2361 void PushArgumentsFromEnvironment(int count);
2362 2362
2363 void SetUpScope(Scope* scope); 2363 void SetUpScope(DeclarationScope* scope);
2364 void VisitStatements(ZoneList<Statement*>* statements); 2364 void VisitStatements(ZoneList<Statement*>* statements);
2365 2365
2366 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); 2366 #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
2367 AST_NODE_LIST(DECLARE_VISIT) 2367 AST_NODE_LIST(DECLARE_VISIT)
2368 #undef DECLARE_VISIT 2368 #undef DECLARE_VISIT
2369 2369
2370 private: 2370 private:
2371 // Helpers for flow graph construction. 2371 // Helpers for flow graph construction.
2372 enum GlobalPropertyAccess { 2372 enum GlobalPropertyAccess {
2373 kUseCell, 2373 kUseCell,
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
3041 } 3041 }
3042 3042
3043 private: 3043 private:
3044 HOptimizedGraphBuilder* builder_; 3044 HOptimizedGraphBuilder* builder_;
3045 }; 3045 };
3046 3046
3047 } // namespace internal 3047 } // namespace internal
3048 } // namespace v8 3048 } // namespace v8
3049 3049
3050 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3050 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698