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

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

Issue 1636013002: Replace HeapType with a non-templated FieldType class. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tracing of generalizations Created 4 years, 11 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
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 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698