OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Review notes: | 5 // Review notes: |
6 // | 6 // |
7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
10 // | 10 // |
(...skipping 5941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5952 reinterpret_cast<Object*>(value), | 5952 reinterpret_cast<Object*>(value), |
5953 mode); | 5953 mode); |
5954 } | 5954 } |
5955 | 5955 |
5956 | 5956 |
5957 bool SharedFunctionInfo::is_compiled() { | 5957 bool SharedFunctionInfo::is_compiled() { |
5958 return code() != GetIsolate()->builtins()->builtin(Builtins::kCompileLazy); | 5958 return code() != GetIsolate()->builtins()->builtin(Builtins::kCompileLazy); |
5959 } | 5959 } |
5960 | 5960 |
5961 | 5961 |
| 5962 bool SharedFunctionInfo::is_simple_parameter_list() { |
| 5963 return scope_info()->IsSimpleParameterList(); |
| 5964 } |
| 5965 |
| 5966 |
5962 bool SharedFunctionInfo::IsApiFunction() { | 5967 bool SharedFunctionInfo::IsApiFunction() { |
5963 return function_data()->IsFunctionTemplateInfo(); | 5968 return function_data()->IsFunctionTemplateInfo(); |
5964 } | 5969 } |
5965 | 5970 |
5966 | 5971 |
5967 FunctionTemplateInfo* SharedFunctionInfo::get_api_func_data() { | 5972 FunctionTemplateInfo* SharedFunctionInfo::get_api_func_data() { |
5968 DCHECK(IsApiFunction()); | 5973 DCHECK(IsApiFunction()); |
5969 return FunctionTemplateInfo::cast(function_data()); | 5974 return FunctionTemplateInfo::cast(function_data()); |
5970 } | 5975 } |
5971 | 5976 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6225 bool JSFunction::should_have_prototype() { | 6230 bool JSFunction::should_have_prototype() { |
6226 return map()->function_with_prototype(); | 6231 return map()->function_with_prototype(); |
6227 } | 6232 } |
6228 | 6233 |
6229 | 6234 |
6230 bool JSFunction::is_compiled() { | 6235 bool JSFunction::is_compiled() { |
6231 return code() != GetIsolate()->builtins()->builtin(Builtins::kCompileLazy); | 6236 return code() != GetIsolate()->builtins()->builtin(Builtins::kCompileLazy); |
6232 } | 6237 } |
6233 | 6238 |
6234 | 6239 |
| 6240 bool JSFunction::is_simple_parameter_list() { |
| 6241 return shared()->is_simple_parameter_list(); |
| 6242 } |
| 6243 |
| 6244 |
6235 FixedArray* JSFunction::literals() { | 6245 FixedArray* JSFunction::literals() { |
6236 DCHECK(!shared()->bound()); | 6246 DCHECK(!shared()->bound()); |
6237 return literals_or_bindings(); | 6247 return literals_or_bindings(); |
6238 } | 6248 } |
6239 | 6249 |
6240 | 6250 |
6241 void JSFunction::set_literals(FixedArray* literals) { | 6251 void JSFunction::set_literals(FixedArray* literals) { |
6242 DCHECK(!shared()->bound()); | 6252 DCHECK(!shared()->bound()); |
6243 set_literals_or_bindings(literals); | 6253 set_literals_or_bindings(literals); |
6244 } | 6254 } |
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7627 #undef READ_SHORT_FIELD | 7637 #undef READ_SHORT_FIELD |
7628 #undef WRITE_SHORT_FIELD | 7638 #undef WRITE_SHORT_FIELD |
7629 #undef READ_BYTE_FIELD | 7639 #undef READ_BYTE_FIELD |
7630 #undef WRITE_BYTE_FIELD | 7640 #undef WRITE_BYTE_FIELD |
7631 #undef NOBARRIER_READ_BYTE_FIELD | 7641 #undef NOBARRIER_READ_BYTE_FIELD |
7632 #undef NOBARRIER_WRITE_BYTE_FIELD | 7642 #undef NOBARRIER_WRITE_BYTE_FIELD |
7633 | 7643 |
7634 } } // namespace v8::internal | 7644 } } // namespace v8::internal |
7635 | 7645 |
7636 #endif // V8_OBJECTS_INL_H_ | 7646 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |