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

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

Issue 19383002: Make deoptimization stress count global. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/isolate.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 4523 matching lines...) Expand 10 before | Expand all | Expand 10 after
4534 SMI_ACCESSORS(SharedFunctionInfo, num_literals, kNumLiteralsOffset) 4534 SMI_ACCESSORS(SharedFunctionInfo, num_literals, kNumLiteralsOffset)
4535 SMI_ACCESSORS(SharedFunctionInfo, start_position_and_type, 4535 SMI_ACCESSORS(SharedFunctionInfo, start_position_and_type,
4536 kStartPositionAndTypeOffset) 4536 kStartPositionAndTypeOffset)
4537 SMI_ACCESSORS(SharedFunctionInfo, end_position, kEndPositionOffset) 4537 SMI_ACCESSORS(SharedFunctionInfo, end_position, kEndPositionOffset)
4538 SMI_ACCESSORS(SharedFunctionInfo, function_token_position, 4538 SMI_ACCESSORS(SharedFunctionInfo, function_token_position,
4539 kFunctionTokenPositionOffset) 4539 kFunctionTokenPositionOffset)
4540 SMI_ACCESSORS(SharedFunctionInfo, compiler_hints, 4540 SMI_ACCESSORS(SharedFunctionInfo, compiler_hints,
4541 kCompilerHintsOffset) 4541 kCompilerHintsOffset)
4542 SMI_ACCESSORS(SharedFunctionInfo, opt_count, kOptCountOffset) 4542 SMI_ACCESSORS(SharedFunctionInfo, opt_count, kOptCountOffset)
4543 SMI_ACCESSORS(SharedFunctionInfo, counters, kCountersOffset) 4543 SMI_ACCESSORS(SharedFunctionInfo, counters, kCountersOffset)
4544 SMI_ACCESSORS(SharedFunctionInfo, 4544
4545 stress_deopt_counter,
4546 kStressDeoptCounterOffset)
4547 #else 4545 #else
4548 4546
4549 #define PSEUDO_SMI_ACCESSORS_LO(holder, name, offset) \ 4547 #define PSEUDO_SMI_ACCESSORS_LO(holder, name, offset) \
4550 STATIC_ASSERT(holder::offset % kPointerSize == 0); \ 4548 STATIC_ASSERT(holder::offset % kPointerSize == 0); \
4551 int holder::name() { \ 4549 int holder::name() { \
4552 int value = READ_INT_FIELD(this, offset); \ 4550 int value = READ_INT_FIELD(this, offset); \
4553 ASSERT(kHeapObjectTag == 1); \ 4551 ASSERT(kHeapObjectTag == 1); \
4554 ASSERT((value & kHeapObjectTag) == 0); \ 4552 ASSERT((value & kHeapObjectTag) == 0); \
4555 return value >> 1; \ 4553 return value >> 1; \
4556 } \ 4554 } \
(...skipping 29 matching lines...) Expand all
4586 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, 4584 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo,
4587 function_token_position, 4585 function_token_position,
4588 kFunctionTokenPositionOffset) 4586 kFunctionTokenPositionOffset)
4589 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, 4587 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo,
4590 compiler_hints, 4588 compiler_hints,
4591 kCompilerHintsOffset) 4589 kCompilerHintsOffset)
4592 4590
4593 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, opt_count, kOptCountOffset) 4591 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, opt_count, kOptCountOffset)
4594 4592
4595 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, counters, kCountersOffset) 4593 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, counters, kCountersOffset)
4596 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, 4594
4597 stress_deopt_counter,
4598 kStressDeoptCounterOffset)
4599 #endif 4595 #endif
4600 4596
4601 4597
4602 int SharedFunctionInfo::construction_count() { 4598 int SharedFunctionInfo::construction_count() {
4603 return READ_BYTE_FIELD(this, kConstructionCountOffset); 4599 return READ_BYTE_FIELD(this, kConstructionCountOffset);
4604 } 4600 }
4605 4601
4606 4602
4607 void SharedFunctionInfo::set_construction_count(int value) { 4603 void SharedFunctionInfo::set_construction_count(int value) {
4608 ASSERT(0 <= value && value < 256); 4604 ASSERT(0 <= value && value < 256);
(...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after
6183 #undef WRITE_UINT32_FIELD 6179 #undef WRITE_UINT32_FIELD
6184 #undef READ_SHORT_FIELD 6180 #undef READ_SHORT_FIELD
6185 #undef WRITE_SHORT_FIELD 6181 #undef WRITE_SHORT_FIELD
6186 #undef READ_BYTE_FIELD 6182 #undef READ_BYTE_FIELD
6187 #undef WRITE_BYTE_FIELD 6183 #undef WRITE_BYTE_FIELD
6188 6184
6189 6185
6190 } } // namespace v8::internal 6186 } } // namespace v8::internal
6191 6187
6192 #endif // V8_OBJECTS_INL_H_ 6188 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/isolate.cc ('K') | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698