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

Side by Side Diff: src/code-stubs.h

Issue 75973005: Remove unused StubType's, freeing 2 bits in Code objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/arm/stub-cache-arm.cc ('k') | src/ia32/stub-cache-ia32.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 // 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
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
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_
OLDNEW
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698