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

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

Issue 7966038: Record function call targets, use them for inlining. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 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/type-info.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 3081 matching lines...) Expand 10 before | Expand all | Expand 10 after
3092 ASSERT(is_to_boolean_ic_stub()); 3092 ASSERT(is_to_boolean_ic_stub());
3093 return READ_BYTE_FIELD(this, kToBooleanTypeOffset); 3093 return READ_BYTE_FIELD(this, kToBooleanTypeOffset);
3094 } 3094 }
3095 3095
3096 3096
3097 void Code::set_to_boolean_state(byte value) { 3097 void Code::set_to_boolean_state(byte value) {
3098 ASSERT(is_to_boolean_ic_stub()); 3098 ASSERT(is_to_boolean_ic_stub());
3099 WRITE_BYTE_FIELD(this, kToBooleanTypeOffset, value); 3099 WRITE_BYTE_FIELD(this, kToBooleanTypeOffset, value);
3100 } 3100 }
3101 3101
3102
3103 bool Code::has_function_cache() {
3104 ASSERT(kind() == STUB);
3105 return READ_BYTE_FIELD(this, kHasFunctionCacheOffset) != 0;
3106 }
3107
3108
3109 void Code::set_has_function_cache(bool flag) {
3110 ASSERT(kind() == STUB);
3111 WRITE_BYTE_FIELD(this, kHasFunctionCacheOffset, flag);
3112 }
3113
3114
3102 bool Code::is_inline_cache_stub() { 3115 bool Code::is_inline_cache_stub() {
3103 Kind kind = this->kind(); 3116 Kind kind = this->kind();
3104 return kind >= FIRST_IC_KIND && kind <= LAST_IC_KIND; 3117 return kind >= FIRST_IC_KIND && kind <= LAST_IC_KIND;
3105 } 3118 }
3106 3119
3107 3120
3108 Code::Flags Code::ComputeFlags(Kind kind, 3121 Code::Flags Code::ComputeFlags(Kind kind,
3109 InlineCacheState ic_state, 3122 InlineCacheState ic_state,
3110 ExtraICState extra_ic_state, 3123 ExtraICState extra_ic_state,
3111 PropertyType type, 3124 PropertyType type,
(...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after
4654 #undef WRITE_INT_FIELD 4667 #undef WRITE_INT_FIELD
4655 #undef READ_SHORT_FIELD 4668 #undef READ_SHORT_FIELD
4656 #undef WRITE_SHORT_FIELD 4669 #undef WRITE_SHORT_FIELD
4657 #undef READ_BYTE_FIELD 4670 #undef READ_BYTE_FIELD
4658 #undef WRITE_BYTE_FIELD 4671 #undef WRITE_BYTE_FIELD
4659 4672
4660 4673
4661 } } // namespace v8::internal 4674 } } // namespace v8::internal
4662 4675
4663 #endif // V8_OBJECTS_INL_H_ 4676 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698