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

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

Issue 25001005: Cleanup in IC patching. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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
« src/ic.cc ('K') | « src/objects.h ('k') | no next file » | 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 4009 matching lines...) Expand 10 before | Expand all | Expand 10 after
4020 Kind kind = this->kind(); 4020 Kind kind = this->kind();
4021 switch (kind) { 4021 switch (kind) {
4022 #define CASE(name) case name: return true; 4022 #define CASE(name) case name: return true;
4023 IC_KIND_LIST(CASE) 4023 IC_KIND_LIST(CASE)
4024 #undef CASE 4024 #undef CASE
4025 default: return false; 4025 default: return false;
4026 } 4026 }
4027 } 4027 }
4028 4028
4029 4029
4030 bool Code::is_keyed_stub() {
4031 return is_keyed_load_stub() || is_keyed_store_stub() || is_keyed_call_stub();
4032 }
4033
4034
4030 bool Code::is_debug_stub() { 4035 bool Code::is_debug_stub() {
4031 return ic_state() == DEBUG_STUB; 4036 return ic_state() == DEBUG_STUB;
4032 } 4037 }
4033 4038
4034 4039
4035 Code::Flags Code::ComputeFlags(Kind kind, 4040 Code::Flags Code::ComputeFlags(Kind kind,
4036 InlineCacheState ic_state, 4041 InlineCacheState ic_state,
4037 ExtraICState extra_ic_state, 4042 ExtraICState extra_ic_state,
4038 StubType type, 4043 StubType type,
4039 int argc, 4044 int argc,
(...skipping 2213 matching lines...) Expand 10 before | Expand all | Expand 10 after
6253 #undef WRITE_UINT32_FIELD 6258 #undef WRITE_UINT32_FIELD
6254 #undef READ_SHORT_FIELD 6259 #undef READ_SHORT_FIELD
6255 #undef WRITE_SHORT_FIELD 6260 #undef WRITE_SHORT_FIELD
6256 #undef READ_BYTE_FIELD 6261 #undef READ_BYTE_FIELD
6257 #undef WRITE_BYTE_FIELD 6262 #undef WRITE_BYTE_FIELD
6258 6263
6259 6264
6260 } } // namespace v8::internal 6265 } } // namespace v8::internal
6261 6266
6262 #endif // V8_OBJECTS_INL_H_ 6267 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/ic.cc ('K') | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698