| 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 4138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4149 if (tries >= 16 && (((tries - 1) & tries) == 0)) { | 4149 if (tries >= 16 && (((tries - 1) & tries) == 0)) { |
| 4150 set_optimization_disabled(false); | 4150 set_optimization_disabled(false); |
| 4151 set_opt_count(0); | 4151 set_opt_count(0); |
| 4152 set_deopt_count(0); | 4152 set_deopt_count(0); |
| 4153 code()->set_optimizable(true); | 4153 code()->set_optimizable(true); |
| 4154 } | 4154 } |
| 4155 } | 4155 } |
| 4156 | 4156 |
| 4157 | 4157 |
| 4158 bool JSFunction::IsBuiltin() { | 4158 bool JSFunction::IsBuiltin() { |
| 4159 return context()->global()->IsJSBuiltinsObject(); | 4159 return context()->global_object()->IsJSBuiltinsObject(); |
| 4160 } | 4160 } |
| 4161 | 4161 |
| 4162 | 4162 |
| 4163 bool JSFunction::NeedsArgumentsAdaption() { | 4163 bool JSFunction::NeedsArgumentsAdaption() { |
| 4164 return shared()->formal_parameter_count() != | 4164 return shared()->formal_parameter_count() != |
| 4165 SharedFunctionInfo::kDontAdaptArgumentsSentinel; | 4165 SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
| 4166 } | 4166 } |
| 4167 | 4167 |
| 4168 | 4168 |
| 4169 bool JSFunction::IsOptimized() { | 4169 bool JSFunction::IsOptimized() { |
| (...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5312 #undef WRITE_UINT32_FIELD | 5312 #undef WRITE_UINT32_FIELD |
| 5313 #undef READ_SHORT_FIELD | 5313 #undef READ_SHORT_FIELD |
| 5314 #undef WRITE_SHORT_FIELD | 5314 #undef WRITE_SHORT_FIELD |
| 5315 #undef READ_BYTE_FIELD | 5315 #undef READ_BYTE_FIELD |
| 5316 #undef WRITE_BYTE_FIELD | 5316 #undef WRITE_BYTE_FIELD |
| 5317 | 5317 |
| 5318 | 5318 |
| 5319 } } // namespace v8::internal | 5319 } } // namespace v8::internal |
| 5320 | 5320 |
| 5321 #endif // V8_OBJECTS_INL_H_ | 5321 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |