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

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

Issue 9297019: Fix and adapt debugger for new call target caches. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Yang Guo. Created 8 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
« no previous file with comments | « src/objects.h ('k') | src/x64/debug-x64.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 3184 matching lines...) Expand 10 before | Expand all | Expand 10 after
3195 return READ_BYTE_FIELD(this, kToBooleanTypeOffset); 3195 return READ_BYTE_FIELD(this, kToBooleanTypeOffset);
3196 } 3196 }
3197 3197
3198 3198
3199 void Code::set_to_boolean_state(byte value) { 3199 void Code::set_to_boolean_state(byte value) {
3200 ASSERT(is_to_boolean_ic_stub()); 3200 ASSERT(is_to_boolean_ic_stub());
3201 WRITE_BYTE_FIELD(this, kToBooleanTypeOffset, value); 3201 WRITE_BYTE_FIELD(this, kToBooleanTypeOffset, value);
3202 } 3202 }
3203 3203
3204 3204
3205 bool Code::has_function_cache() {
3206 ASSERT(kind() == STUB);
3207 return READ_BYTE_FIELD(this, kHasFunctionCacheOffset) != 0;
3208 }
3209
3210
3211 void Code::set_has_function_cache(bool flag) {
3212 ASSERT(kind() == STUB);
3213 WRITE_BYTE_FIELD(this, kHasFunctionCacheOffset, flag);
3214 }
3215
3216
3205 bool Code::is_inline_cache_stub() { 3217 bool Code::is_inline_cache_stub() {
3206 Kind kind = this->kind(); 3218 Kind kind = this->kind();
3207 return kind >= FIRST_IC_KIND && kind <= LAST_IC_KIND; 3219 return kind >= FIRST_IC_KIND && kind <= LAST_IC_KIND;
3208 } 3220 }
3209 3221
3210 3222
3211 Code::Flags Code::ComputeFlags(Kind kind, 3223 Code::Flags Code::ComputeFlags(Kind kind,
3212 InlineCacheState ic_state, 3224 InlineCacheState ic_state,
3213 ExtraICState extra_ic_state, 3225 ExtraICState extra_ic_state,
3214 PropertyType type, 3226 PropertyType type,
(...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after
4872 #undef WRITE_INT_FIELD 4884 #undef WRITE_INT_FIELD
4873 #undef READ_SHORT_FIELD 4885 #undef READ_SHORT_FIELD
4874 #undef WRITE_SHORT_FIELD 4886 #undef WRITE_SHORT_FIELD
4875 #undef READ_BYTE_FIELD 4887 #undef READ_BYTE_FIELD
4876 #undef WRITE_BYTE_FIELD 4888 #undef WRITE_BYTE_FIELD
4877 4889
4878 4890
4879 } } // namespace v8::internal 4891 } } // namespace v8::internal
4880 4892
4881 #endif // V8_OBJECTS_INL_H_ 4893 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/x64/debug-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698