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

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

Issue 656533003: Special handling for inline caches in code serializer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 6 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
« no previous file with comments | « src/objects.h ('k') | src/serialize.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 4815 matching lines...) Expand 10 before | Expand all | Expand 10 after
4826 4826
4827 void Code::set_profiler_ticks(int ticks) { 4827 void Code::set_profiler_ticks(int ticks) {
4828 DCHECK(ticks < 256); 4828 DCHECK(ticks < 256);
4829 if (kind() == FUNCTION) { 4829 if (kind() == FUNCTION) {
4830 WRITE_BYTE_FIELD(this, kProfilerTicksOffset, ticks); 4830 WRITE_BYTE_FIELD(this, kProfilerTicksOffset, ticks);
4831 } 4831 }
4832 } 4832 }
4833 4833
4834 4834
4835 int Code::builtin_index() { 4835 int Code::builtin_index() {
4836 DCHECK_EQ(BUILTIN, kind());
4837 return READ_INT32_FIELD(this, kKindSpecificFlags1Offset); 4836 return READ_INT32_FIELD(this, kKindSpecificFlags1Offset);
4838 } 4837 }
4839 4838
4840 4839
4841 void Code::set_builtin_index(int index) { 4840 void Code::set_builtin_index(int index) {
4842 DCHECK_EQ(BUILTIN, kind());
4843 WRITE_INT32_FIELD(this, kKindSpecificFlags1Offset, index); 4841 WRITE_INT32_FIELD(this, kKindSpecificFlags1Offset, index);
4844 } 4842 }
4845 4843
4846 4844
4847 unsigned Code::stack_slots() { 4845 unsigned Code::stack_slots() {
4848 DCHECK(is_crankshafted()); 4846 DCHECK(is_crankshafted());
4849 return StackSlotsField::decode( 4847 return StackSlotsField::decode(
4850 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset)); 4848 READ_UINT32_FIELD(this, kKindSpecificFlags1Offset));
4851 } 4849 }
4852 4850
(...skipping 2434 matching lines...) Expand 10 before | Expand all | Expand 10 after
7287 #undef READ_SHORT_FIELD 7285 #undef READ_SHORT_FIELD
7288 #undef WRITE_SHORT_FIELD 7286 #undef WRITE_SHORT_FIELD
7289 #undef READ_BYTE_FIELD 7287 #undef READ_BYTE_FIELD
7290 #undef WRITE_BYTE_FIELD 7288 #undef WRITE_BYTE_FIELD
7291 #undef NOBARRIER_READ_BYTE_FIELD 7289 #undef NOBARRIER_READ_BYTE_FIELD
7292 #undef NOBARRIER_WRITE_BYTE_FIELD 7290 #undef NOBARRIER_WRITE_BYTE_FIELD
7293 7291
7294 } } // namespace v8::internal 7292 } } // namespace v8::internal
7295 7293
7296 #endif // V8_OBJECTS_INL_H_ 7294 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698