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

Side by Side Diff: src/hydrogen.h

Issue 132623005: A64: Synchronize with r18642. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/heap.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 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2163 void VisitArgument(Expression* expr); 2163 void VisitArgument(Expression* expr);
2164 2164
2165 void VisitArgumentList(ZoneList<Expression*>* arguments); 2165 void VisitArgumentList(ZoneList<Expression*>* arguments);
2166 2166
2167 // Visit a list of expressions from left to right, each in a value context. 2167 // Visit a list of expressions from left to right, each in a value context.
2168 void VisitExpressions(ZoneList<Expression*>* exprs); 2168 void VisitExpressions(ZoneList<Expression*>* exprs);
2169 2169
2170 // Remove the arguments from the bailout environment and emit instructions 2170 // Remove the arguments from the bailout environment and emit instructions
2171 // to push them as outgoing parameters. 2171 // to push them as outgoing parameters.
2172 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); 2172 template <class Instruction> HInstruction* PreProcessCall(Instruction* call);
2173 void PushArgumentsFromEnvironment(int count);
2173 2174
2174 void SetUpScope(Scope* scope); 2175 void SetUpScope(Scope* scope);
2175 virtual void VisitStatements(ZoneList<Statement*>* statements) V8_OVERRIDE; 2176 virtual void VisitStatements(ZoneList<Statement*>* statements) V8_OVERRIDE;
2176 2177
2177 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) V8_OVERRIDE; 2178 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) V8_OVERRIDE;
2178 AST_NODE_LIST(DECLARE_VISIT) 2179 AST_NODE_LIST(DECLARE_VISIT)
2179 #undef DECLARE_VISIT 2180 #undef DECLARE_VISIT
2180 2181
2181 private: 2182 private:
2182 // Helpers for flow graph construction. 2183 // Helpers for flow graph construction.
2183 enum GlobalPropertyAccess { 2184 enum GlobalPropertyAccess {
2184 kUseCell, 2185 kUseCell,
2185 kUseGeneric 2186 kUseGeneric
2186 }; 2187 };
2187 GlobalPropertyAccess LookupGlobalProperty(Variable* var, 2188 GlobalPropertyAccess LookupGlobalProperty(Variable* var,
2188 LookupResult* lookup, 2189 LookupResult* lookup,
2189 bool is_store); 2190 bool is_store);
2190 2191
2191 void EnsureArgumentsArePushedForAccess(); 2192 void EnsureArgumentsArePushedForAccess();
2192 bool TryArgumentsAccess(Property* expr); 2193 bool TryArgumentsAccess(Property* expr);
2193 2194
2194 // Try to optimize fun.apply(receiver, arguments) pattern. 2195 // Try to optimize fun.apply(receiver, arguments) pattern.
2195 bool TryCallApply(Call* expr); 2196 bool TryCallApply(Call* expr);
2196 2197
2197 HValue* ImplicitReceiverFor(HValue* function, 2198 HValue* ImplicitReceiverFor(HValue* function,
2198 Handle<JSFunction> target); 2199 Handle<JSFunction> target);
2199 2200
2200 int InliningAstSize(Handle<JSFunction> target); 2201 int InliningAstSize(Handle<JSFunction> target);
2201 bool TryInline(CallKind call_kind, 2202 bool TryInline(Handle<JSFunction> target,
2202 Handle<JSFunction> target,
2203 int arguments_count, 2203 int arguments_count,
2204 HValue* implicit_return_value, 2204 HValue* implicit_return_value,
2205 BailoutId ast_id, 2205 BailoutId ast_id,
2206 BailoutId return_id, 2206 BailoutId return_id,
2207 InliningKind inlining_kind); 2207 InliningKind inlining_kind);
2208 2208
2209 bool TryInlineCall(Call* expr, bool drop_extra = false); 2209 bool TryInlineCall(Call* expr, bool drop_extra = false);
2210 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); 2210 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value);
2211 bool TryInlineGetter(Handle<JSFunction> getter, 2211 bool TryInlineGetter(Handle<JSFunction> getter,
2212 BailoutId ast_id, 2212 BailoutId ast_id,
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 HValue* object_elements, 2490 HValue* object_elements,
2491 AllocationSiteUsageContext* site_context); 2491 AllocationSiteUsageContext* site_context);
2492 2492
2493 void AddCheckPrototypeMaps(Handle<JSObject> holder, 2493 void AddCheckPrototypeMaps(Handle<JSObject> holder,
2494 Handle<Map> receiver_map); 2494 Handle<Map> receiver_map);
2495 2495
2496 void AddCheckConstantFunction(Handle<JSObject> holder, 2496 void AddCheckConstantFunction(Handle<JSObject> holder,
2497 HValue* receiver, 2497 HValue* receiver,
2498 Handle<Map> receiver_map); 2498 Handle<Map> receiver_map);
2499 2499
2500 HInstruction* NewPlainFunctionCall(HValue* fun,
2501 int argument_count,
2502 bool pass_argument_count);
2503
2504 HInstruction* NewArgumentAdaptorCall(HValue* fun, HValue* context,
2505 int argument_count,
2506 HValue* expected_param_count);
2507
2508 HInstruction* BuildCallConstantFunction(Handle<JSFunction> target,
2509 int argument_count);
2510
2511 HInstruction* NewCallKeyed(HValue* key, int argument_count);
2512
2513 HInstruction* NewCallNamed(Handle<String> name, int argument_count);
2514
2500 // The translation state of the currently-being-translated function. 2515 // The translation state of the currently-being-translated function.
2501 FunctionState* function_state_; 2516 FunctionState* function_state_;
2502 2517
2503 // The base of the function state stack. 2518 // The base of the function state stack.
2504 FunctionState initial_function_state_; 2519 FunctionState initial_function_state_;
2505 2520
2506 // Expression context of the currently visited subexpression. NULL when 2521 // Expression context of the currently visited subexpression. NULL when
2507 // visiting statements. 2522 // visiting statements.
2508 AstContext* ast_context_; 2523 AstContext* ast_context_;
2509 2524
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
2681 } 2696 }
2682 2697
2683 private: 2698 private:
2684 HGraphBuilder* builder_; 2699 HGraphBuilder* builder_;
2685 }; 2700 };
2686 2701
2687 2702
2688 } } // namespace v8::internal 2703 } } // namespace v8::internal
2689 2704
2690 #endif // V8_HYDROGEN_H_ 2705 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698