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

Side by Side Diff: src/hydrogen.h

Issue 196133017: Experimental parser: merge r19949 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/heap-snapshot-generator.cc ('k') | src/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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after
2102 } 2102 }
2103 HBasicBlock* function_return() const { 2103 HBasicBlock* function_return() const {
2104 return function_state()->function_return(); 2104 return function_state()->function_return();
2105 } 2105 }
2106 TestContext* inlined_test_context() const { 2106 TestContext* inlined_test_context() const {
2107 return function_state()->test_context(); 2107 return function_state()->test_context();
2108 } 2108 }
2109 void ClearInlinedTestContext() { 2109 void ClearInlinedTestContext() {
2110 function_state()->ClearInlinedTestContext(); 2110 function_state()->ClearInlinedTestContext();
2111 } 2111 }
2112 StrictModeFlag function_strict_mode_flag() { 2112 StrictMode function_strict_mode() {
2113 return function_state()->compilation_info()->is_classic_mode() 2113 return function_state()->compilation_info()->strict_mode();
2114 ? kNonStrictMode : kStrictMode;
2115 } 2114 }
2116 2115
2117 // Generators for inline runtime functions. 2116 // Generators for inline runtime functions.
2118 #define INLINE_FUNCTION_GENERATOR_DECLARATION(Name, argc, ressize) \ 2117 #define INLINE_FUNCTION_GENERATOR_DECLARATION(Name, argc, ressize) \
2119 void Generate##Name(CallRuntime* call); 2118 void Generate##Name(CallRuntime* call);
2120 2119
2121 INLINE_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION) 2120 INLINE_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION)
2122 INLINE_RUNTIME_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_DECLARATION)
2123 #undef INLINE_FUNCTION_GENERATOR_DECLARATION 2121 #undef INLINE_FUNCTION_GENERATOR_DECLARATION
2124 2122
2125 void VisitDelete(UnaryOperation* expr); 2123 void VisitDelete(UnaryOperation* expr);
2126 void VisitVoid(UnaryOperation* expr); 2124 void VisitVoid(UnaryOperation* expr);
2127 void VisitTypeof(UnaryOperation* expr); 2125 void VisitTypeof(UnaryOperation* expr);
2128 void VisitNot(UnaryOperation* expr); 2126 void VisitNot(UnaryOperation* expr);
2129 2127
2130 void VisitComma(BinaryOperation* expr); 2128 void VisitComma(BinaryOperation* expr);
2131 void VisitLogicalExpression(BinaryOperation* expr); 2129 void VisitLogicalExpression(BinaryOperation* expr);
2132 void VisitArithmeticExpression(BinaryOperation* expr); 2130 void VisitArithmeticExpression(BinaryOperation* expr);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
2207 // contexts. (It's allowed in all effect contexts and disallowed in all 2205 // contexts. (It's allowed in all effect contexts and disallowed in all
2208 // test contexts.) 2206 // test contexts.)
2209 void VisitForValue(Expression* expr, 2207 void VisitForValue(Expression* expr,
2210 ArgumentsAllowedFlag flag = ARGUMENTS_NOT_ALLOWED); 2208 ArgumentsAllowedFlag flag = ARGUMENTS_NOT_ALLOWED);
2211 void VisitForTypeOf(Expression* expr); 2209 void VisitForTypeOf(Expression* expr);
2212 void VisitForEffect(Expression* expr); 2210 void VisitForEffect(Expression* expr);
2213 void VisitForControl(Expression* expr, 2211 void VisitForControl(Expression* expr,
2214 HBasicBlock* true_block, 2212 HBasicBlock* true_block,
2215 HBasicBlock* false_block); 2213 HBasicBlock* false_block);
2216 2214
2217 // Visit an argument subexpression and emit a push to the outgoing arguments.
2218 void VisitArgument(Expression* expr);
2219
2220 void VisitArgumentList(ZoneList<Expression*>* arguments);
2221
2222 // Visit a list of expressions from left to right, each in a value context. 2215 // Visit a list of expressions from left to right, each in a value context.
2223 void VisitExpressions(ZoneList<Expression*>* exprs); 2216 void VisitExpressions(ZoneList<Expression*>* exprs);
2224 2217
2225 // Remove the arguments from the bailout environment and emit instructions 2218 // Remove the arguments from the bailout environment and emit instructions
2226 // to push them as outgoing parameters. 2219 // to push them as outgoing parameters.
2227 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); 2220 template <class Instruction> HInstruction* PreProcessCall(Instruction* call);
2228 void PushArgumentsFromEnvironment(int count); 2221 void PushArgumentsFromEnvironment(int count);
2229 2222
2230 void SetUpScope(Scope* scope); 2223 void SetUpScope(Scope* scope);
2231 virtual void VisitStatements(ZoneList<Statement*>* statements) V8_OVERRIDE; 2224 virtual void VisitStatements(ZoneList<Statement*>* statements) V8_OVERRIDE;
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
2793 } 2786 }
2794 2787
2795 private: 2788 private:
2796 HGraphBuilder* builder_; 2789 HGraphBuilder* builder_;
2797 }; 2790 };
2798 2791
2799 2792
2800 } } // namespace v8::internal 2793 } } // namespace v8::internal
2801 2794
2802 #endif // V8_HYDROGEN_H_ 2795 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/heap-snapshot-generator.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698