| 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 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2637 | 2637 |
| 2638 private: | 2638 private: |
| 2639 Handle<Object> GetConstantFromMap(Handle<Map> map) const { | 2639 Handle<Object> GetConstantFromMap(Handle<Map> map) const { |
| 2640 DCHECK_EQ(DESCRIPTOR_TYPE, lookup_type_); | 2640 DCHECK_EQ(DESCRIPTOR_TYPE, lookup_type_); |
| 2641 DCHECK(number_ < map->NumberOfOwnDescriptors()); | 2641 DCHECK(number_ < map->NumberOfOwnDescriptors()); |
| 2642 return handle(map->instance_descriptors()->GetValue(number_), isolate()); | 2642 return handle(map->instance_descriptors()->GetValue(number_), isolate()); |
| 2643 } | 2643 } |
| 2644 Handle<Object> GetAccessorsFromMap(Handle<Map> map) const { | 2644 Handle<Object> GetAccessorsFromMap(Handle<Map> map) const { |
| 2645 return GetConstantFromMap(map); | 2645 return GetConstantFromMap(map); |
| 2646 } | 2646 } |
| 2647 Handle<HeapType> GetFieldTypeFromMap(Handle<Map> map) const { | 2647 Handle<FieldType> GetFieldTypeFromMap(Handle<Map> map) const { |
| 2648 DCHECK(IsFound()); | 2648 DCHECK(IsFound()); |
| 2649 DCHECK(number_ < map->NumberOfOwnDescriptors()); | 2649 DCHECK(number_ < map->NumberOfOwnDescriptors()); |
| 2650 return handle(map->instance_descriptors()->GetFieldType(number_), | 2650 return handle(map->instance_descriptors()->GetFieldType(number_), |
| 2651 isolate()); | 2651 isolate()); |
| 2652 } | 2652 } |
| 2653 Handle<Map> GetFieldOwnerFromMap(Handle<Map> map) const { | 2653 Handle<Map> GetFieldOwnerFromMap(Handle<Map> map) const { |
| 2654 DCHECK(IsFound()); | 2654 DCHECK(IsFound()); |
| 2655 DCHECK(number_ < map->NumberOfOwnDescriptors()); | 2655 DCHECK(number_ < map->NumberOfOwnDescriptors()); |
| 2656 return handle(map->FindFieldOwner(number_)); | 2656 return handle(map->FindFieldOwner(number_)); |
| 2657 } | 2657 } |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3064 | 3064 |
| 3065 private: | 3065 private: |
| 3066 HGraphBuilder* builder_; | 3066 HGraphBuilder* builder_; |
| 3067 }; | 3067 }; |
| 3068 | 3068 |
| 3069 | 3069 |
| 3070 } // namespace internal | 3070 } // namespace internal |
| 3071 } // namespace v8 | 3071 } // namespace v8 |
| 3072 | 3072 |
| 3073 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3073 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
| OLD | NEW |