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_CRANKSHAFT_HYDROGEN_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_ |
6 #define V8_CRANKSHAFT_HYDROGEN_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_H_ |
7 | 7 |
8 #include "src/accessors.h" | 8 #include "src/accessors.h" |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 2497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2508 Handle<Map> initial_map); | 2508 Handle<Map> initial_map); |
2509 | 2509 |
2510 class PropertyAccessInfo { | 2510 class PropertyAccessInfo { |
2511 public: | 2511 public: |
2512 PropertyAccessInfo(HOptimizedGraphBuilder* builder, | 2512 PropertyAccessInfo(HOptimizedGraphBuilder* builder, |
2513 PropertyAccessType access_type, Handle<Map> map, | 2513 PropertyAccessType access_type, Handle<Map> map, |
2514 Handle<Name> name) | 2514 Handle<Name> name) |
2515 : builder_(builder), | 2515 : builder_(builder), |
2516 access_type_(access_type), | 2516 access_type_(access_type), |
2517 map_(map), | 2517 map_(map), |
2518 name_(name), | 2518 name_(isolate()->factory()->InternalizeName(name)), |
2519 field_type_(HType::Tagged()), | 2519 field_type_(HType::Tagged()), |
2520 access_(HObjectAccess::ForMap()), | 2520 access_(HObjectAccess::ForMap()), |
2521 lookup_type_(NOT_FOUND), | 2521 lookup_type_(NOT_FOUND), |
2522 details_(NONE, DATA, Representation::None()) {} | 2522 details_(NONE, DATA, Representation::None()) {} |
2523 | 2523 |
2524 // Checkes whether this PropertyAccessInfo can be handled as a monomorphic | 2524 // Checkes whether this PropertyAccessInfo can be handled as a monomorphic |
2525 // load named. It additionally fills in the fields necessary to generate the | 2525 // load named. It additionally fills in the fields necessary to generate the |
2526 // lookup code. | 2526 // lookup code. |
2527 bool CanAccessMonomorphic(); | 2527 bool CanAccessMonomorphic(); |
2528 | 2528 |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3032 | 3032 |
3033 private: | 3033 private: |
3034 HGraphBuilder* builder_; | 3034 HGraphBuilder* builder_; |
3035 }; | 3035 }; |
3036 | 3036 |
3037 | 3037 |
3038 } // namespace internal | 3038 } // namespace internal |
3039 } // namespace v8 | 3039 } // namespace v8 |
3040 | 3040 |
3041 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3041 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
OLD | NEW |