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

Side by Side Diff: src/objects-inl.h

Issue 62953007: Handle all object types (minus smi) in load/store ICs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed commentsx 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/objects.h ('k') | src/stub-cache.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 // 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 4149 matching lines...) Expand 10 before | Expand all | Expand 10 after
4160 | CacheHolderField::encode(holder); 4160 | CacheHolderField::encode(holder);
4161 if (!Code::needs_extended_extra_ic_state(kind)) { 4161 if (!Code::needs_extended_extra_ic_state(kind)) {
4162 bits |= (argc << kArgumentsCountShift); 4162 bits |= (argc << kArgumentsCountShift);
4163 } 4163 }
4164 return static_cast<Flags>(bits); 4164 return static_cast<Flags>(bits);
4165 } 4165 }
4166 4166
4167 4167
4168 Code::Flags Code::ComputeMonomorphicFlags(Kind kind, 4168 Code::Flags Code::ComputeMonomorphicFlags(Kind kind,
4169 ExtraICState extra_ic_state, 4169 ExtraICState extra_ic_state,
4170 InlineCacheHolderFlag holder,
4170 StubType type, 4171 StubType type,
4171 int argc, 4172 int argc) {
4172 InlineCacheHolderFlag holder) {
4173 return ComputeFlags(kind, MONOMORPHIC, extra_ic_state, type, argc, holder); 4173 return ComputeFlags(kind, MONOMORPHIC, extra_ic_state, type, argc, holder);
4174 } 4174 }
4175 4175
4176 4176
4177 Code::Kind Code::ExtractKindFromFlags(Flags flags) { 4177 Code::Kind Code::ExtractKindFromFlags(Flags flags) {
4178 return KindField::decode(flags); 4178 return KindField::decode(flags);
4179 } 4179 }
4180 4180
4181 4181
4182 InlineCacheState Code::ExtractICStateFromFlags(Flags flags) { 4182 InlineCacheState Code::ExtractICStateFromFlags(Flags flags) {
(...skipping 2230 matching lines...) Expand 10 before | Expand all | Expand 10 after
6413 #undef WRITE_UINT32_FIELD 6413 #undef WRITE_UINT32_FIELD
6414 #undef READ_SHORT_FIELD 6414 #undef READ_SHORT_FIELD
6415 #undef WRITE_SHORT_FIELD 6415 #undef WRITE_SHORT_FIELD
6416 #undef READ_BYTE_FIELD 6416 #undef READ_BYTE_FIELD
6417 #undef WRITE_BYTE_FIELD 6417 #undef WRITE_BYTE_FIELD
6418 6418
6419 6419
6420 } } // namespace v8::internal 6420 } } // namespace v8::internal
6421 6421
6422 #endif // V8_OBJECTS_INL_H_ 6422 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698