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 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2312 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); | 2312 template <class Instruction> HInstruction* PreProcessCall(Instruction* call); |
2313 void PushArgumentsFromEnvironment(int count); | 2313 void PushArgumentsFromEnvironment(int count); |
2314 | 2314 |
2315 void SetUpScope(Scope* scope); | 2315 void SetUpScope(Scope* scope); |
2316 virtual void VisitStatements(ZoneList<Statement*>* statements) OVERRIDE; | 2316 virtual void VisitStatements(ZoneList<Statement*>* statements) OVERRIDE; |
2317 | 2317 |
2318 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) OVERRIDE; | 2318 #define DECLARE_VISIT(type) virtual void Visit##type(type* node) OVERRIDE; |
2319 AST_NODE_LIST(DECLARE_VISIT) | 2319 AST_NODE_LIST(DECLARE_VISIT) |
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); |
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, LookupIterator* it, | 2330 GlobalPropertyAccess LookupGlobalProperty(Variable* var, LookupIterator* it, |
2331 PropertyAccessType access_type); | 2331 PropertyAccessType access_type); |
2332 | 2332 |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2928 } | 2928 } |
2929 | 2929 |
2930 private: | 2930 private: |
2931 HGraphBuilder* builder_; | 2931 HGraphBuilder* builder_; |
2932 }; | 2932 }; |
2933 | 2933 |
2934 | 2934 |
2935 } } // namespace v8::internal | 2935 } } // namespace v8::internal |
2936 | 2936 |
2937 #endif // V8_HYDROGEN_H_ | 2937 #endif // V8_HYDROGEN_H_ |
OLD | NEW |