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

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

Issue 756423006: Optimize GetPrototype (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add test and add back Push/Pop Created 6 years 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/hydrogen.cc ('k') | src/messages.js » ('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 <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/v8.h" 10 #include "src/v8.h"
(...skipping 6161 matching lines...) Expand 10 before | Expand all | Expand 10 after
6172 } 6172 }
6173 6173
6174 static HObjectAccess ForFunctionContextPointer() { 6174 static HObjectAccess ForFunctionContextPointer() {
6175 return HObjectAccess(kInobject, JSFunction::kContextOffset); 6175 return HObjectAccess(kInobject, JSFunction::kContextOffset);
6176 } 6176 }
6177 6177
6178 static HObjectAccess ForMap() { 6178 static HObjectAccess ForMap() {
6179 return HObjectAccess(kMaps, JSObject::kMapOffset); 6179 return HObjectAccess(kMaps, JSObject::kMapOffset);
6180 } 6180 }
6181 6181
6182 static HObjectAccess ForPrototype() {
6183 return HObjectAccess(kMaps, Map::kPrototypeOffset);
6184 }
6185
6182 static HObjectAccess ForMapAsInteger32() { 6186 static HObjectAccess ForMapAsInteger32() {
6183 return HObjectAccess(kMaps, JSObject::kMapOffset, 6187 return HObjectAccess(kMaps, JSObject::kMapOffset,
6184 Representation::Integer32()); 6188 Representation::Integer32());
6185 } 6189 }
6186 6190
6187 static HObjectAccess ForMapInObjectProperties() { 6191 static HObjectAccess ForMapInObjectProperties() {
6188 return HObjectAccess(kInobject, 6192 return HObjectAccess(kInobject,
6189 Map::kInObjectPropertiesOffset, 6193 Map::kInObjectPropertiesOffset,
6190 Representation::UInteger8()); 6194 Representation::UInteger8());
6191 } 6195 }
(...skipping 1804 matching lines...) Expand 10 before | Expand all | Expand 10 after
7996 }; 8000 };
7997 8001
7998 8002
7999 8003
8000 #undef DECLARE_INSTRUCTION 8004 #undef DECLARE_INSTRUCTION
8001 #undef DECLARE_CONCRETE_INSTRUCTION 8005 #undef DECLARE_CONCRETE_INSTRUCTION
8002 8006
8003 } } // namespace v8::internal 8007 } } // namespace v8::internal
8004 8008
8005 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 8009 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698