Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(795)

Side by Side Diff: src/crankshaft/hydrogen.h

Issue 1696333002: Don't include field-type.h into objects-inl.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/access-info.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2604 matching lines...) Expand 10 before | Expand all | Expand 10 after
2615 2615
2616 private: 2616 private:
2617 Handle<Object> GetConstantFromMap(Handle<Map> map) const { 2617 Handle<Object> GetConstantFromMap(Handle<Map> map) const {
2618 DCHECK_EQ(DESCRIPTOR_TYPE, lookup_type_); 2618 DCHECK_EQ(DESCRIPTOR_TYPE, lookup_type_);
2619 DCHECK(number_ < map->NumberOfOwnDescriptors()); 2619 DCHECK(number_ < map->NumberOfOwnDescriptors());
2620 return handle(map->instance_descriptors()->GetValue(number_), isolate()); 2620 return handle(map->instance_descriptors()->GetValue(number_), isolate());
2621 } 2621 }
2622 Handle<Object> GetAccessorsFromMap(Handle<Map> map) const { 2622 Handle<Object> GetAccessorsFromMap(Handle<Map> map) const {
2623 return GetConstantFromMap(map); 2623 return GetConstantFromMap(map);
2624 } 2624 }
2625 Handle<FieldType> GetFieldTypeFromMap(Handle<Map> map) const { 2625 Handle<FieldType> GetFieldTypeFromMap(Handle<Map> map) const;
2626 DCHECK(IsFound());
2627 DCHECK(number_ < map->NumberOfOwnDescriptors());
2628 return handle(map->instance_descriptors()->GetFieldType(number_),
2629 isolate());
2630 }
2631 Handle<Map> GetFieldOwnerFromMap(Handle<Map> map) const { 2626 Handle<Map> GetFieldOwnerFromMap(Handle<Map> map) const {
2632 DCHECK(IsFound()); 2627 DCHECK(IsFound());
2633 DCHECK(number_ < map->NumberOfOwnDescriptors()); 2628 DCHECK(number_ < map->NumberOfOwnDescriptors());
2634 return handle(map->FindFieldOwner(number_)); 2629 return handle(map->FindFieldOwner(number_));
2635 } 2630 }
2636 int GetLocalFieldIndexFromMap(Handle<Map> map) const { 2631 int GetLocalFieldIndexFromMap(Handle<Map> map) const {
2637 DCHECK(lookup_type_ == DESCRIPTOR_TYPE || 2632 DCHECK(lookup_type_ == DESCRIPTOR_TYPE ||
2638 lookup_type_ == TRANSITION_TYPE); 2633 lookup_type_ == TRANSITION_TYPE);
2639 DCHECK(number_ < map->NumberOfOwnDescriptors()); 2634 DCHECK(number_ < map->NumberOfOwnDescriptors());
2640 int field_index = map->instance_descriptors()->GetFieldIndex(number_); 2635 int field_index = map->instance_descriptors()->GetFieldIndex(number_);
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
3042 3037
3043 private: 3038 private:
3044 HGraphBuilder* builder_; 3039 HGraphBuilder* builder_;
3045 }; 3040 };
3046 3041
3047 3042
3048 } // namespace internal 3043 } // namespace internal
3049 } // namespace v8 3044 } // namespace v8
3050 3045
3051 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3046 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/compiler/access-info.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698