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

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

Issue 8883011: Implement ICs for constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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/ic.cc ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3120 Code::Flags Code::ComputeFlags(Kind kind, 3120 Code::Flags Code::ComputeFlags(Kind kind,
3121 InlineCacheState ic_state, 3121 InlineCacheState ic_state,
3122 ExtraICState extra_ic_state, 3122 ExtraICState extra_ic_state,
3123 PropertyType type, 3123 PropertyType type,
3124 int argc, 3124 int argc,
3125 InlineCacheHolderFlag holder) { 3125 InlineCacheHolderFlag holder) {
3126 // Extra IC state is only allowed for call IC stubs or for store IC 3126 // Extra IC state is only allowed for call IC stubs or for store IC
3127 // stubs. 3127 // stubs.
3128 ASSERT(extra_ic_state == kNoExtraICState || 3128 ASSERT(extra_ic_state == kNoExtraICState ||
3129 kind == CALL_IC || 3129 kind == CALL_IC ||
3130 kind == KEYED_CALL_IC ||
3130 kind == STORE_IC || 3131 kind == STORE_IC ||
3131 kind == KEYED_STORE_IC); 3132 kind == KEYED_STORE_IC);
3132 // Compute the bit mask. 3133 // Compute the bit mask.
3133 int bits = KindField::encode(kind) 3134 int bits = KindField::encode(kind)
3134 | ICStateField::encode(ic_state) 3135 | ICStateField::encode(ic_state)
3135 | TypeField::encode(type) 3136 | TypeField::encode(type)
3136 | ExtraFlagsField::encode(extra_ic_state) 3137 | ExtraFlagsField::encode(extra_ic_state)
3137 | (argc << kArgumentsCountShift) 3138 | (argc << kArgumentsCountShift)
3138 | CacheHolderField::encode(holder); 3139 | CacheHolderField::encode(holder);
3139 return static_cast<Flags>(bits); 3140 return static_cast<Flags>(bits);
(...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
4692 #undef WRITE_INT_FIELD 4693 #undef WRITE_INT_FIELD
4693 #undef READ_SHORT_FIELD 4694 #undef READ_SHORT_FIELD
4694 #undef WRITE_SHORT_FIELD 4695 #undef WRITE_SHORT_FIELD
4695 #undef READ_BYTE_FIELD 4696 #undef READ_BYTE_FIELD
4696 #undef WRITE_BYTE_FIELD 4697 #undef WRITE_BYTE_FIELD
4697 4698
4698 4699
4699 } } // namespace v8::internal 4700 } } // namespace v8::internal
4700 4701
4701 #endif // V8_OBJECTS_INL_H_ 4702 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698