| OLD | NEW |
| 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 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2211 bool TryInline(Handle<JSFunction> target, | 2211 bool TryInline(Handle<JSFunction> target, |
| 2212 int arguments_count, | 2212 int arguments_count, |
| 2213 HValue* implicit_return_value, | 2213 HValue* implicit_return_value, |
| 2214 BailoutId ast_id, | 2214 BailoutId ast_id, |
| 2215 BailoutId return_id, | 2215 BailoutId return_id, |
| 2216 InliningKind inlining_kind); | 2216 InliningKind inlining_kind); |
| 2217 | 2217 |
| 2218 bool TryInlineCall(Call* expr); | 2218 bool TryInlineCall(Call* expr); |
| 2219 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); | 2219 bool TryInlineConstruct(CallNew* expr, HValue* implicit_return_value); |
| 2220 bool TryInlineGetter(Handle<JSFunction> getter, | 2220 bool TryInlineGetter(Handle<JSFunction> getter, |
| 2221 Handle<Map> receiver_map, |
| 2221 BailoutId ast_id, | 2222 BailoutId ast_id, |
| 2222 BailoutId return_id); | 2223 BailoutId return_id); |
| 2223 bool TryInlineSetter(Handle<JSFunction> setter, | 2224 bool TryInlineSetter(Handle<JSFunction> setter, |
| 2224 BailoutId id, | 2225 BailoutId id, |
| 2225 BailoutId assignment_id, | 2226 BailoutId assignment_id, |
| 2226 HValue* implicit_return_value); | 2227 HValue* implicit_return_value); |
| 2227 bool TryInlineApply(Handle<JSFunction> function, | 2228 bool TryInlineApply(Handle<JSFunction> function, |
| 2228 Call* expr, | 2229 Call* expr, |
| 2229 int arguments_count); | 2230 int arguments_count); |
| 2230 bool TryInlineBuiltinMethodCall(Call* expr, | 2231 bool TryInlineBuiltinMethodCall(Call* expr, |
| 2231 HValue* receiver, | 2232 HValue* receiver, |
| 2232 Handle<Map> receiver_map); | 2233 Handle<Map> receiver_map); |
| 2233 bool TryInlineBuiltinFunctionCall(Call* expr); | 2234 bool TryInlineBuiltinFunctionCall(Call* expr); |
| 2235 enum ApiCallType { |
| 2236 kCallApiFunction, |
| 2237 kCallApiMethod, |
| 2238 kCallApiGetter |
| 2239 }; |
| 2234 bool TryInlineApiMethodCall(Call* expr, | 2240 bool TryInlineApiMethodCall(Call* expr, |
| 2235 HValue* receiver, | 2241 HValue* receiver, |
| 2236 Handle<Map> receiver_map); | 2242 SmallMapList* receiver_types); |
| 2237 bool TryInlineApiFunctionCall(Call* expr, HValue* receiver); | 2243 bool TryInlineApiFunctionCall(Call* expr, HValue* receiver); |
| 2238 bool TryInlineApiCall(Call* expr, | 2244 bool TryInlineApiGetter(Handle<JSFunction> function, |
| 2239 HValue* receiver, | 2245 Handle<Map> receiver_map, |
| 2240 Handle<Map> receiver_map, | 2246 BailoutId ast_id); |
| 2241 bool is_function_call); | 2247 bool TryInlineApiCall(Handle<JSFunction> function, |
| 2248 HValue* receiver, |
| 2249 SmallMapList* receiver_maps, |
| 2250 int argc, |
| 2251 BailoutId ast_id, |
| 2252 ApiCallType call_type); |
| 2242 | 2253 |
| 2243 // If --trace-inlining, print a line of the inlining trace. Inlining | 2254 // If --trace-inlining, print a line of the inlining trace. Inlining |
| 2244 // succeeded if the reason string is NULL and failed if there is a | 2255 // succeeded if the reason string is NULL and failed if there is a |
| 2245 // non-NULL reason string. | 2256 // non-NULL reason string. |
| 2246 void TraceInline(Handle<JSFunction> target, | 2257 void TraceInline(Handle<JSFunction> target, |
| 2247 Handle<JSFunction> caller, | 2258 Handle<JSFunction> caller, |
| 2248 const char* failure_reason); | 2259 const char* failure_reason); |
| 2249 | 2260 |
| 2250 void HandleGlobalVariableAssignment(Variable* var, | 2261 void HandleGlobalVariableAssignment(Variable* var, |
| 2251 HValue* value, | 2262 HValue* value, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2367 access_.representation().generalize(r)); | 2378 access_.representation().generalize(r)); |
| 2368 } | 2379 } |
| 2369 | 2380 |
| 2370 LookupResult lookup_; | 2381 LookupResult lookup_; |
| 2371 HOptimizedGraphBuilder* builder_; | 2382 HOptimizedGraphBuilder* builder_; |
| 2372 PropertyAccessType access_type_; | 2383 PropertyAccessType access_type_; |
| 2373 Type* type_; | 2384 Type* type_; |
| 2374 Handle<String> name_; | 2385 Handle<String> name_; |
| 2375 Handle<JSObject> holder_; | 2386 Handle<JSObject> holder_; |
| 2376 Handle<JSFunction> accessor_; | 2387 Handle<JSFunction> accessor_; |
| 2388 Handle<JSObject> api_holder_; |
| 2377 Handle<Object> constant_; | 2389 Handle<Object> constant_; |
| 2378 Handle<Map> transition_; | 2390 Handle<Map> transition_; |
| 2379 HObjectAccess access_; | 2391 HObjectAccess access_; |
| 2380 }; | 2392 }; |
| 2381 | 2393 |
| 2382 HInstruction* BuildMonomorphicAccess(PropertyAccessInfo* info, | 2394 HInstruction* BuildMonomorphicAccess(PropertyAccessInfo* info, |
| 2383 HValue* object, | 2395 HValue* object, |
| 2384 HValue* checked_object, | 2396 HValue* checked_object, |
| 2385 HValue* value, | 2397 HValue* value, |
| 2386 BailoutId ast_id, | 2398 BailoutId ast_id, |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2724 } | 2736 } |
| 2725 | 2737 |
| 2726 private: | 2738 private: |
| 2727 HGraphBuilder* builder_; | 2739 HGraphBuilder* builder_; |
| 2728 }; | 2740 }; |
| 2729 | 2741 |
| 2730 | 2742 |
| 2731 } } // namespace v8::internal | 2743 } } // namespace v8::internal |
| 2732 | 2744 |
| 2733 #endif // V8_HYDROGEN_H_ | 2745 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |