| OLD | NEW |
| 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 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ | 1216 V(kOperandIsASmiAndNotAName, "Operand is a smi and not a name") \ |
| 1217 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ | 1217 V(kOperandIsASmiAndNotAString, "Operand is a smi and not a string") \ |
| 1218 V(kOperandIsASmi, "Operand is a smi") \ | 1218 V(kOperandIsASmi, "Operand is a smi") \ |
| 1219 V(kOperandIsNotAName, "Operand is not a name") \ | 1219 V(kOperandIsNotAName, "Operand is not a name") \ |
| 1220 V(kOperandIsNotANumber, "Operand is not a number") \ | 1220 V(kOperandIsNotANumber, "Operand is not a number") \ |
| 1221 V(kOperandIsNotASmi, "Operand is not a smi") \ | 1221 V(kOperandIsNotASmi, "Operand is not a smi") \ |
| 1222 V(kOperandIsNotAString, "Operand is not a string") \ | 1222 V(kOperandIsNotAString, "Operand is not a string") \ |
| 1223 V(kOperandIsNotSmi, "Operand is not smi") \ | 1223 V(kOperandIsNotSmi, "Operand is not smi") \ |
| 1224 V(kOperandNotANumber, "Operand not a number") \ | 1224 V(kOperandNotANumber, "Operand not a number") \ |
| 1225 V(kOptimizedTooManyTimes, "optimized too many times") \ | 1225 V(kOptimizedTooManyTimes, "optimized too many times") \ |
| 1226 V(kDeoptimizedTooManyTimes, "deoptimized too many times") \ |
| 1226 V(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister, \ | 1227 V(kOutOfVirtualRegistersWhileTryingToAllocateTempRegister, \ |
| 1227 "Out of virtual registers while trying to allocate temp register") \ | 1228 "Out of virtual registers while trying to allocate temp register") \ |
| 1228 V(kParseScopeError, "parse/scope error") \ | 1229 V(kParseScopeError, "parse/scope error") \ |
| 1229 V(kPossibleDirectCallToEval, "possible direct call to eval") \ | 1230 V(kPossibleDirectCallToEval, "possible direct call to eval") \ |
| 1230 V(kPropertyAllocationCountFailed, "Property allocation count failed") \ | 1231 V(kPropertyAllocationCountFailed, "Property allocation count failed") \ |
| 1231 V(kReceivedInvalidReturnAddress, "Received invalid return address") \ | 1232 V(kReceivedInvalidReturnAddress, "Received invalid return address") \ |
| 1232 V(kReferenceToAVariableWhichRequiresDynamicLookup, \ | 1233 V(kReferenceToAVariableWhichRequiresDynamicLookup, \ |
| 1233 "reference to a variable which requires dynamic lookup") \ | 1234 "reference to a variable which requires dynamic lookup") \ |
| 1234 V(kReferenceToGlobalLexicalVariable, \ | 1235 V(kReferenceToGlobalLexicalVariable, \ |
| 1235 "reference to global lexical variable") \ | 1236 "reference to global lexical variable") \ |
| (...skipping 5334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6570 Handle<Object> GetSourceCode(); | 6571 Handle<Object> GetSourceCode(); |
| 6571 | 6572 |
| 6572 // Number of times the function was optimized. | 6573 // Number of times the function was optimized. |
| 6573 inline int opt_count(); | 6574 inline int opt_count(); |
| 6574 inline void set_opt_count(int opt_count); | 6575 inline void set_opt_count(int opt_count); |
| 6575 | 6576 |
| 6576 // Number of times the function was deoptimized. | 6577 // Number of times the function was deoptimized. |
| 6577 inline void set_deopt_count(int value); | 6578 inline void set_deopt_count(int value); |
| 6578 inline int deopt_count(); | 6579 inline int deopt_count(); |
| 6579 inline void increment_deopt_count(); | 6580 inline void increment_deopt_count(); |
| 6581 inline bool too_many_deopts(); |
| 6580 | 6582 |
| 6581 // Number of time we tried to re-enable optimization after it | 6583 // Number of time we tried to re-enable optimization after it |
| 6582 // was disabled due to high number of deoptimizations. | 6584 // was disabled due to high number of deoptimizations. |
| 6583 inline void set_opt_reenable_tries(int value); | 6585 inline void set_opt_reenable_tries(int value); |
| 6584 inline int opt_reenable_tries(); | 6586 inline int opt_reenable_tries(); |
| 6585 | 6587 |
| 6586 inline void TryReenableOptimization(); | 6588 inline void TryReenableOptimization(); |
| 6587 | 6589 |
| 6588 // Stores deopt_count, opt_reenable_tries and ic_age as bit-fields. | 6590 // Stores deopt_count, opt_reenable_tries and ic_age as bit-fields. |
| 6589 inline void set_counters(int value); | 6591 inline void set_counters(int value); |
| (...skipping 3587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10177 } else { | 10179 } else { |
| 10178 value &= ~(1 << bit_position); | 10180 value &= ~(1 << bit_position); |
| 10179 } | 10181 } |
| 10180 return value; | 10182 return value; |
| 10181 } | 10183 } |
| 10182 }; | 10184 }; |
| 10183 | 10185 |
| 10184 } } // namespace v8::internal | 10186 } } // namespace v8::internal |
| 10185 | 10187 |
| 10186 #endif // V8_OBJECTS_H_ | 10188 #endif // V8_OBJECTS_H_ |
| OLD | NEW |