| 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 4164 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  4175   return function_data()->IsSmi(); |  4175   return function_data()->IsSmi(); | 
|  4176 } |  4176 } | 
|  4177  |  4177  | 
|  4178  |  4178  | 
|  4179 BuiltinFunctionId SharedFunctionInfo::builtin_function_id() { |  4179 BuiltinFunctionId SharedFunctionInfo::builtin_function_id() { | 
|  4180   ASSERT(HasBuiltinFunctionId()); |  4180   ASSERT(HasBuiltinFunctionId()); | 
|  4181   return static_cast<BuiltinFunctionId>(Smi::cast(function_data())->value()); |  4181   return static_cast<BuiltinFunctionId>(Smi::cast(function_data())->value()); | 
|  4182 } |  4182 } | 
|  4183  |  4183  | 
|  4184  |  4184  | 
|  4185 int SharedFunctionInfo::code_age() { |  | 
|  4186   return (compiler_hints() >> kCodeAgeShift) & kCodeAgeMask; |  | 
|  4187 } |  | 
|  4188  |  | 
|  4189  |  | 
|  4190 void SharedFunctionInfo::set_code_age(int code_age) { |  | 
|  4191   int hints = compiler_hints() & ~(kCodeAgeMask << kCodeAgeShift); |  | 
|  4192   set_compiler_hints(hints | ((code_age & kCodeAgeMask) << kCodeAgeShift)); |  | 
|  4193 } |  | 
|  4194  |  | 
|  4195  |  | 
|  4196 int SharedFunctionInfo::ic_age() { |  4185 int SharedFunctionInfo::ic_age() { | 
|  4197   return ICAgeBits::decode(counters()); |  4186   return ICAgeBits::decode(counters()); | 
|  4198 } |  4187 } | 
|  4199  |  4188  | 
|  4200  |  4189  | 
|  4201 void SharedFunctionInfo::set_ic_age(int ic_age) { |  4190 void SharedFunctionInfo::set_ic_age(int ic_age) { | 
|  4202   set_counters(ICAgeBits::update(counters(), ic_age)); |  4191   set_counters(ICAgeBits::update(counters(), ic_age)); | 
|  4203 } |  4192 } | 
|  4204  |  4193  | 
|  4205  |  4194  | 
| (...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  5485 #undef WRITE_UINT32_FIELD |  5474 #undef WRITE_UINT32_FIELD | 
|  5486 #undef READ_SHORT_FIELD |  5475 #undef READ_SHORT_FIELD | 
|  5487 #undef WRITE_SHORT_FIELD |  5476 #undef WRITE_SHORT_FIELD | 
|  5488 #undef READ_BYTE_FIELD |  5477 #undef READ_BYTE_FIELD | 
|  5489 #undef WRITE_BYTE_FIELD |  5478 #undef WRITE_BYTE_FIELD | 
|  5490  |  5479  | 
|  5491  |  5480  | 
|  5492 } }  // namespace v8::internal |  5481 } }  // namespace v8::internal | 
|  5493  |  5482  | 
|  5494 #endif  // V8_OBJECTS_INL_H_ |  5483 #endif  // V8_OBJECTS_INL_H_ | 
| OLD | NEW |