| OLD | NEW |
| 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_HYDROGEN_H_ | 5 #ifndef V8_HYDROGEN_H_ |
| 6 #define V8_HYDROGEN_H_ | 6 #define V8_HYDROGEN_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
| (...skipping 2309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2320 #undef DECLARE_VISIT | 2320 #undef DECLARE_VISIT |
| 2321 | 2321 |
| 2322 Type* ToType(Handle<Map> map) { return IC::MapToType<Type>(map, zone()); } | 2322 Type* ToType(Handle<Map> map) { return IC::MapToType<Type>(map, zone()); } |
| 2323 | 2323 |
| 2324 private: | 2324 private: |
| 2325 // Helpers for flow graph construction. | 2325 // Helpers for flow graph construction. |
| 2326 enum GlobalPropertyAccess { | 2326 enum GlobalPropertyAccess { |
| 2327 kUseCell, | 2327 kUseCell, |
| 2328 kUseGeneric | 2328 kUseGeneric |
| 2329 }; | 2329 }; |
| 2330 GlobalPropertyAccess LookupGlobalProperty(Variable* var, | 2330 GlobalPropertyAccess LookupGlobalProperty(Variable* var, LookupIterator* it, |
| 2331 LookupResult* lookup, | |
| 2332 PropertyAccessType access_type); | 2331 PropertyAccessType access_type); |
| 2333 | 2332 |
| 2334 void EnsureArgumentsArePushedForAccess(); | 2333 void EnsureArgumentsArePushedForAccess(); |
| 2335 bool TryArgumentsAccess(Property* expr); | 2334 bool TryArgumentsAccess(Property* expr); |
| 2336 | 2335 |
| 2337 // Try to optimize fun.apply(receiver, arguments) pattern. | 2336 // Try to optimize fun.apply(receiver, arguments) pattern. |
| 2338 bool TryCallApply(Call* expr); | 2337 bool TryCallApply(Call* expr); |
| 2339 | 2338 |
| 2340 bool TryHandleArrayCall(Call* expr, HValue* function); | 2339 bool TryHandleArrayCall(Call* expr, HValue* function); |
| 2341 bool TryHandleArrayCallNew(CallNew* expr, HValue* function); | 2340 bool TryHandleArrayCallNew(CallNew* expr, HValue* function); |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2903 } | 2902 } |
| 2904 | 2903 |
| 2905 private: | 2904 private: |
| 2906 HGraphBuilder* builder_; | 2905 HGraphBuilder* builder_; |
| 2907 }; | 2906 }; |
| 2908 | 2907 |
| 2909 | 2908 |
| 2910 } } // namespace v8::internal | 2909 } } // namespace v8::internal |
| 2911 | 2910 |
| 2912 #endif // V8_HYDROGEN_H_ | 2911 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |