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

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

Issue 1272763005: [stubs] Store typeof string on Oddballs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects.h » ('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 <cstring> 8 #include <cstring>
9 #include <iosfwd> 9 #include <iosfwd>
10 10
(...skipping 5969 matching lines...) Expand 10 before | Expand all | Expand 10 after
5980 HeapNumber::kValueOffset, 5980 HeapNumber::kValueOffset,
5981 Representation::Integer32()); 5981 Representation::Integer32());
5982 } 5982 }
5983 5983
5984 static HObjectAccess ForHeapNumberValueHighestBits() { 5984 static HObjectAccess ForHeapNumberValueHighestBits() {
5985 return HObjectAccess(kDouble, 5985 return HObjectAccess(kDouble,
5986 HeapNumber::kValueOffset + kIntSize, 5986 HeapNumber::kValueOffset + kIntSize,
5987 Representation::Integer32()); 5987 Representation::Integer32());
5988 } 5988 }
5989 5989
5990 static HObjectAccess ForOddballTypeOf() {
5991 return HObjectAccess(kInobject, Oddball::kTypeOfOffset,
5992 Representation::HeapObject());
5993 }
5994
5990 static HObjectAccess ForElementsPointer() { 5995 static HObjectAccess ForElementsPointer() {
5991 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); 5996 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset);
5992 } 5997 }
5993 5998
5994 static HObjectAccess ForLiteralsPointer() { 5999 static HObjectAccess ForLiteralsPointer() {
5995 return HObjectAccess(kInobject, JSFunction::kLiteralsOffset); 6000 return HObjectAccess(kInobject, JSFunction::kLiteralsOffset);
5996 } 6001 }
5997 6002
5998 static HObjectAccess ForNextFunctionLinkPointer() { 6003 static HObjectAccess ForNextFunctionLinkPointer() {
5999 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset); 6004 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset);
(...skipping 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after
8056 }; 8061 };
8057 8062
8058 8063
8059 8064
8060 #undef DECLARE_INSTRUCTION 8065 #undef DECLARE_INSTRUCTION
8061 #undef DECLARE_CONCRETE_INSTRUCTION 8066 #undef DECLARE_CONCRETE_INSTRUCTION
8062 8067
8063 } } // namespace v8::internal 8068 } } // namespace v8::internal
8064 8069
8065 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 8070 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698