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

Side by Side Diff: src/hydrogen-instructions.h

Issue 488073002: Further reduce LookupResult usage (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More consistency Created 6 years, 4 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
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.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_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 6174 matching lines...) Expand 10 before | Expand all | Expand 10 after
6185 // Create an access to an in-object property in a JSArray. 6185 // Create an access to an in-object property in a JSArray.
6186 static HObjectAccess ForJSArrayOffset(int offset); 6186 static HObjectAccess ForJSArrayOffset(int offset);
6187 6187
6188 static HObjectAccess ForContextSlot(int index); 6188 static HObjectAccess ForContextSlot(int index);
6189 6189
6190 // Create an access to the backing store of an object. 6190 // Create an access to the backing store of an object.
6191 static HObjectAccess ForBackingStoreOffset(int offset, 6191 static HObjectAccess ForBackingStoreOffset(int offset,
6192 Representation representation = Representation::Tagged()); 6192 Representation representation = Representation::Tagged());
6193 6193
6194 // Create an access to a resolved field (in-object or backing store). 6194 // Create an access to a resolved field (in-object or backing store).
6195 static HObjectAccess ForField(Handle<Map> map, 6195 static HObjectAccess ForField(Handle<Map> map, int index,
6196 LookupResult *lookup, Handle<String> name = Handle<String>::null()); 6196 Representation representation,
6197 Handle<String> name);
6197 6198
6198 // Create an access for the payload of a Cell or JSGlobalPropertyCell. 6199 // Create an access for the payload of a Cell or JSGlobalPropertyCell.
6199 static HObjectAccess ForCellPayload(Isolate* isolate); 6200 static HObjectAccess ForCellPayload(Isolate* isolate);
6200 6201
6201 static HObjectAccess ForJSTypedArrayLength() { 6202 static HObjectAccess ForJSTypedArrayLength() {
6202 return HObjectAccess::ForObservableJSObjectOffset( 6203 return HObjectAccess::ForObservableJSObjectOffset(
6203 JSTypedArray::kLengthOffset); 6204 JSTypedArray::kLengthOffset);
6204 } 6205 }
6205 6206
6206 static HObjectAccess ForJSArrayBufferBackingStore() { 6207 static HObjectAccess ForJSArrayBufferBackingStore() {
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after
7859 }; 7860 };
7860 7861
7861 7862
7862 7863
7863 #undef DECLARE_INSTRUCTION 7864 #undef DECLARE_INSTRUCTION
7864 #undef DECLARE_CONCRETE_INSTRUCTION 7865 #undef DECLARE_CONCRETE_INSTRUCTION
7865 7866
7866 } } // namespace v8::internal 7867 } } // namespace v8::internal
7867 7868
7868 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7869 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698