| OLD | NEW |
| 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 3307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3318 return static_cast<BuiltinFunctionId>(Smi::cast(function_data())->value()); | 3318 return static_cast<BuiltinFunctionId>(Smi::cast(function_data())->value()); |
| 3319 } | 3319 } |
| 3320 | 3320 |
| 3321 | 3321 |
| 3322 int SharedFunctionInfo::code_age() { | 3322 int SharedFunctionInfo::code_age() { |
| 3323 return (compiler_hints() >> kCodeAgeShift) & kCodeAgeMask; | 3323 return (compiler_hints() >> kCodeAgeShift) & kCodeAgeMask; |
| 3324 } | 3324 } |
| 3325 | 3325 |
| 3326 | 3326 |
| 3327 void SharedFunctionInfo::set_code_age(int code_age) { | 3327 void SharedFunctionInfo::set_code_age(int code_age) { |
| 3328 set_compiler_hints(compiler_hints() | | 3328 int clear_mask = ~(kCodeAgeMask << kCodeAgeShift); |
| 3329 set_compiler_hints((compiler_hints() & clear_mask) | |
| 3329 ((code_age & kCodeAgeMask) << kCodeAgeShift)); | 3330 ((code_age & kCodeAgeMask) << kCodeAgeShift)); |
| 3330 } | 3331 } |
| 3331 | 3332 |
| 3332 | 3333 |
| 3333 bool SharedFunctionInfo::has_deoptimization_support() { | 3334 bool SharedFunctionInfo::has_deoptimization_support() { |
| 3334 Code* code = this->code(); | 3335 Code* code = this->code(); |
| 3335 return code->kind() == Code::FUNCTION && code->has_deoptimization_support(); | 3336 return code->kind() == Code::FUNCTION && code->has_deoptimization_support(); |
| 3336 } | 3337 } |
| 3337 | 3338 |
| 3338 | 3339 |
| (...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4206 #undef WRITE_INT_FIELD | 4207 #undef WRITE_INT_FIELD |
| 4207 #undef READ_SHORT_FIELD | 4208 #undef READ_SHORT_FIELD |
| 4208 #undef WRITE_SHORT_FIELD | 4209 #undef WRITE_SHORT_FIELD |
| 4209 #undef READ_BYTE_FIELD | 4210 #undef READ_BYTE_FIELD |
| 4210 #undef WRITE_BYTE_FIELD | 4211 #undef WRITE_BYTE_FIELD |
| 4211 | 4212 |
| 4212 | 4213 |
| 4213 } } // namespace v8::internal | 4214 } } // namespace v8::internal |
| 4214 | 4215 |
| 4215 #endif // V8_OBJECTS_INL_H_ | 4216 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |