OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1015 HValue* object, | 1015 HValue* object, |
1016 HValue* key, | 1016 HValue* key, |
1017 HValue* val, | 1017 HValue* val, |
1018 HCheckMaps* mapcheck, | 1018 HCheckMaps* mapcheck, |
1019 bool is_js_array, | 1019 bool is_js_array, |
1020 ElementsKind elements_kind, | 1020 ElementsKind elements_kind, |
1021 bool is_store, | 1021 bool is_store, |
1022 KeyedAccessStoreMode store_mode, | 1022 KeyedAccessStoreMode store_mode, |
1023 Representation checked_index_representation = Representation::None()); | 1023 Representation checked_index_representation = Representation::None()); |
1024 | 1024 |
1025 HInstruction* BuildStoreMap(HValue* object, HValue* map); | 1025 HLoadNamedField * AddLoad(HValue *object, HObjectAccess* access, |
1026 HInstruction* BuildStoreMap(HValue* object, Handle<Map> map); | 1026 HValue *typecheck = NULL); |
1027 HStoreNamedField* AddStore(HValue *object, HObjectAccess* access, | |
1028 HValue *val, Representation representation = Representation::Tagged()); | |
1029 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>); | |
1030 | |
1031 HObjectAccess* AccessArrayHeader(int offset); | |
1032 HObjectAccess* AccessArrayLength(); | |
1033 HObjectAccess* AccessElements(); | |
1034 HObjectAccess* AccessFixedArrayLength(); | |
1035 HObjectAccess* AccessMap(); | |
1036 HObjectAccess* AccessField(Handle<Map> map, Handle<String> name, | |
1037 LookupResult* lookup); | |
1038 HObjectAccess* AccessInobject(Handle<String> name, int offset); | |
danno
2013/05/02 14:16:47
Why not have this as a constructor for HObjectAcce
titzer
2013/05/03 09:18:41
Because the HObjectAccess pointers are actually be
| |
1027 | 1039 |
1028 class IfBuilder { | 1040 class IfBuilder { |
1029 public: | 1041 public: |
1030 explicit IfBuilder(HGraphBuilder* builder, | 1042 explicit IfBuilder(HGraphBuilder* builder, |
1031 int position = RelocInfo::kNoPosition); | 1043 int position = RelocInfo::kNoPosition); |
1032 IfBuilder(HGraphBuilder* builder, | 1044 IfBuilder(HGraphBuilder* builder, |
1033 HIfContinuation* continuation); | 1045 HIfContinuation* continuation); |
1034 | 1046 |
1035 ~IfBuilder() { | 1047 ~IfBuilder() { |
1036 if (!finished_) End(); | 1048 if (!finished_) End(); |
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2003 EmbeddedVector<char, 64> filename_; | 2015 EmbeddedVector<char, 64> filename_; |
2004 HeapStringAllocator string_allocator_; | 2016 HeapStringAllocator string_allocator_; |
2005 StringStream trace_; | 2017 StringStream trace_; |
2006 int indent_; | 2018 int indent_; |
2007 }; | 2019 }; |
2008 | 2020 |
2009 | 2021 |
2010 } } // namespace v8::internal | 2022 } } // namespace v8::internal |
2011 | 2023 |
2012 #endif // V8_HYDROGEN_H_ | 2024 #endif // V8_HYDROGEN_H_ |
OLD | NEW |