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

Side by Side Diff: src/hydrogen.h

Issue 18503006: Move representation into HObjectAccess and remove from HLoadNamedField and HStoreNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 HCheckMaps* mapcheck, 1110 HCheckMaps* mapcheck,
1111 bool is_js_array, 1111 bool is_js_array,
1112 ElementsKind elements_kind, 1112 ElementsKind elements_kind,
1113 bool is_store, 1113 bool is_store,
1114 LoadKeyedHoleMode load_mode, 1114 LoadKeyedHoleMode load_mode,
1115 KeyedAccessStoreMode store_mode); 1115 KeyedAccessStoreMode store_mode);
1116 1116
1117 HLoadNamedField* AddLoad( 1117 HLoadNamedField* AddLoad(
1118 HValue *object, 1118 HValue *object,
1119 HObjectAccess access, 1119 HObjectAccess access,
1120 HValue *typecheck = NULL, 1120 HValue *typecheck = NULL);
1121 Representation representation = Representation::Tagged());
1122 1121
1123 HLoadNamedField* BuildLoadNamedField( 1122 HLoadNamedField* BuildLoadNamedField(HValue* object, HObjectAccess access);
1124 HValue* object, 1123 HStoreNamedField* AddStore(HValue *object, HObjectAccess access, HValue *val);
1125 HObjectAccess access,
1126 Representation representation);
1127
1128 HStoreNamedField* AddStore(
1129 HValue *object,
1130 HObjectAccess access,
1131 HValue *val,
1132 Representation representation = Representation::Tagged());
1133
1134 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>); 1124 HStoreNamedField* AddStoreMapConstant(HValue *object, Handle<Map>);
1135
1136 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL); 1125 HLoadNamedField* AddLoadElements(HValue *object, HValue *typecheck = NULL);
1137
1138 HLoadNamedField* AddLoadFixedArrayLength(HValue *object); 1126 HLoadNamedField* AddLoadFixedArrayLength(HValue *object);
1139 1127
1140 class IfBuilder { 1128 class IfBuilder {
1141 public: 1129 public:
1142 explicit IfBuilder(HGraphBuilder* builder, 1130 explicit IfBuilder(HGraphBuilder* builder,
1143 int position = RelocInfo::kNoPosition); 1131 int position = RelocInfo::kNoPosition);
1144 IfBuilder(HGraphBuilder* builder, 1132 IfBuilder(HGraphBuilder* builder,
1145 HIfContinuation* continuation); 1133 HIfContinuation* continuation);
1146 1134
1147 ~IfBuilder() { 1135 ~IfBuilder() {
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
2107 EmbeddedVector<char, 64> filename_; 2095 EmbeddedVector<char, 64> filename_;
2108 HeapStringAllocator string_allocator_; 2096 HeapStringAllocator string_allocator_;
2109 StringStream trace_; 2097 StringStream trace_;
2110 int indent_; 2098 int indent_;
2111 }; 2099 };
2112 2100
2113 2101
2114 } } // namespace v8::internal 2102 } } // namespace v8::internal
2115 2103
2116 #endif // V8_HYDROGEN_H_ 2104 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698