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 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 int index = IndexBits::decode(bit_field_); | 924 int index = IndexBits::decode(bit_field_); |
925 int offset = index * kPointerSize; | 925 int offset = index * kPointerSize; |
926 if (is_inobject()) return offset; | 926 if (is_inobject()) return offset; |
927 return FixedArray::kHeaderSize + offset; | 927 return FixedArray::kHeaderSize + offset; |
928 } | 928 } |
929 | 929 |
930 bool unboxed_double() { | 930 bool unboxed_double() { |
931 return UnboxedDoubleBits::decode(bit_field_); | 931 return UnboxedDoubleBits::decode(bit_field_); |
932 } | 932 } |
933 | 933 |
934 virtual Code::StubType GetStubType() { return Code::FIELD; } | 934 virtual Code::StubType GetStubType() { return Code::FAST; } |
935 | 935 |
936 protected: | 936 protected: |
937 LoadFieldStub() : HandlerStub() { } | 937 LoadFieldStub() : HandlerStub() { } |
938 | 938 |
939 void Initialize(Code::Kind kind, | 939 void Initialize(Code::Kind kind, |
940 bool inobject, | 940 bool inobject, |
941 int index, | 941 int index, |
942 Representation representation) { | 942 Representation representation) { |
943 bool unboxed_double = FLAG_track_double_fields && representation.IsDouble(); | 943 bool unboxed_double = FLAG_track_double_fields && representation.IsDouble(); |
944 bit_field_ = KindBits::encode(kind) | 944 bit_field_ = KindBits::encode(kind) |
(...skipping 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2514 int MinorKey() { return 0; } | 2514 int MinorKey() { return 0; } |
2515 | 2515 |
2516 void Generate(MacroAssembler* masm); | 2516 void Generate(MacroAssembler* masm); |
2517 | 2517 |
2518 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 2518 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
2519 }; | 2519 }; |
2520 | 2520 |
2521 } } // namespace v8::internal | 2521 } } // namespace v8::internal |
2522 | 2522 |
2523 #endif // V8_CODE_STUBS_H_ | 2523 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |