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

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

Issue 166883002: Remove HandlerKindField and just encode the handlerkind as the only extra-ic-state. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
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 4480 matching lines...) Expand 10 before | Expand all | Expand 10 after
4491 4491
4492 Code::Flags Code::ComputeMonomorphicFlags(Kind kind, 4492 Code::Flags Code::ComputeMonomorphicFlags(Kind kind,
4493 ExtraICState extra_ic_state, 4493 ExtraICState extra_ic_state,
4494 InlineCacheHolderFlag holder, 4494 InlineCacheHolderFlag holder,
4495 StubType type) { 4495 StubType type) {
4496 return ComputeFlags(kind, MONOMORPHIC, extra_ic_state, type, holder); 4496 return ComputeFlags(kind, MONOMORPHIC, extra_ic_state, type, holder);
4497 } 4497 }
4498 4498
4499 4499
4500 Code::Flags Code::ComputeHandlerFlags(Kind handler_kind, 4500 Code::Flags Code::ComputeHandlerFlags(Kind handler_kind,
4501 ExtraICState extra_ic_state,
4502 StubType type, 4501 StubType type,
4503 InlineCacheHolderFlag holder) { 4502 InlineCacheHolderFlag holder) {
4504 ExtraICState extra = HandlerKindField::encode(handler_kind) | extra_ic_state; 4503 return ComputeFlags(Code::HANDLER, MONOMORPHIC, handler_kind, type, holder);
4505 return ComputeFlags(Code::HANDLER, MONOMORPHIC, extra, type, holder);
4506 } 4504 }
4507 4505
4508 4506
4509 Code::Kind Code::ExtractKindFromFlags(Flags flags) { 4507 Code::Kind Code::ExtractKindFromFlags(Flags flags) {
4510 return KindField::decode(flags); 4508 return KindField::decode(flags);
4511 } 4509 }
4512 4510
4513 4511
4514 InlineCacheState Code::ExtractICStateFromFlags(Flags flags) { 4512 InlineCacheState Code::ExtractICStateFromFlags(Flags flags) {
4515 return ICStateField::decode(flags); 4513 return ICStateField::decode(flags);
(...skipping 2220 matching lines...) Expand 10 before | Expand all | Expand 10 after
6736 #undef READ_UINT32_FIELD 6734 #undef READ_UINT32_FIELD
6737 #undef WRITE_UINT32_FIELD 6735 #undef WRITE_UINT32_FIELD
6738 #undef READ_SHORT_FIELD 6736 #undef READ_SHORT_FIELD
6739 #undef WRITE_SHORT_FIELD 6737 #undef WRITE_SHORT_FIELD
6740 #undef READ_BYTE_FIELD 6738 #undef READ_BYTE_FIELD
6741 #undef WRITE_BYTE_FIELD 6739 #undef WRITE_BYTE_FIELD
6742 6740
6743 } } // namespace v8::internal 6741 } } // namespace v8::internal
6744 6742
6745 #endif // V8_OBJECTS_INL_H_ 6743 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/objects.h ('K') | « src/objects.h ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698