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 3883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3894 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) | 3894 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, native, kNative) |
3895 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, | 3895 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, |
3896 name_should_print_as_anonymous, | 3896 name_should_print_as_anonymous, |
3897 kNameShouldPrintAsAnonymous) | 3897 kNameShouldPrintAsAnonymous) |
3898 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) | 3898 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, bound, kBoundFunction) |
3899 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) | 3899 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous, kIsAnonymous) |
3900 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) | 3900 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) |
3901 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize, | 3901 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_optimize, |
3902 kDontOptimize) | 3902 kDontOptimize) |
3903 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) | 3903 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_inline, kDontInline) |
| 3904 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_cache, kDontCache) |
3904 | 3905 |
3905 void SharedFunctionInfo::BeforeVisitingPointers() { | 3906 void SharedFunctionInfo::BeforeVisitingPointers() { |
3906 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap(); | 3907 if (IsInobjectSlackTrackingInProgress()) DetachInitialMap(); |
3907 | 3908 |
3908 // Flush optimized code map on major GC. | 3909 // Flush optimized code map on major GC. |
3909 // Note: we may experiment with rebuilding it or retaining entries | 3910 // Note: we may experiment with rebuilding it or retaining entries |
3910 // which should survive as we iterate through optimized functions | 3911 // which should survive as we iterate through optimized functions |
3911 // anyway. | 3912 // anyway. |
3912 set_optimized_code_map(Smi::FromInt(0)); | 3913 set_optimized_code_map(Smi::FromInt(0)); |
3913 } | 3914 } |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4344 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kForeignAddressOffset)); | 4345 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kForeignAddressOffset)); |
4345 } | 4346 } |
4346 | 4347 |
4347 | 4348 |
4348 void Foreign::set_foreign_address(Address value) { | 4349 void Foreign::set_foreign_address(Address value) { |
4349 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); | 4350 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); |
4350 } | 4351 } |
4351 | 4352 |
4352 | 4353 |
4353 ACCESSORS(JSModule, context, Object, kContextOffset) | 4354 ACCESSORS(JSModule, context, Object, kContextOffset) |
| 4355 ACCESSORS(JSModule, scope_info, ScopeInfo, kScopeInfoOffset) |
4354 | 4356 |
4355 | 4357 |
4356 JSModule* JSModule::cast(Object* obj) { | 4358 JSModule* JSModule::cast(Object* obj) { |
4357 ASSERT(obj->IsJSModule()); | 4359 ASSERT(obj->IsJSModule()); |
4358 ASSERT(HeapObject::cast(obj)->Size() == JSModule::kSize); | 4360 ASSERT(HeapObject::cast(obj)->Size() == JSModule::kSize); |
4359 return reinterpret_cast<JSModule*>(obj); | 4361 return reinterpret_cast<JSModule*>(obj); |
4360 } | 4362 } |
4361 | 4363 |
4362 | 4364 |
4363 ACCESSORS(JSValue, value, Object, kValueOffset) | 4365 ACCESSORS(JSValue, value, Object, kValueOffset) |
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5223 #undef WRITE_UINT32_FIELD | 5225 #undef WRITE_UINT32_FIELD |
5224 #undef READ_SHORT_FIELD | 5226 #undef READ_SHORT_FIELD |
5225 #undef WRITE_SHORT_FIELD | 5227 #undef WRITE_SHORT_FIELD |
5226 #undef READ_BYTE_FIELD | 5228 #undef READ_BYTE_FIELD |
5227 #undef WRITE_BYTE_FIELD | 5229 #undef WRITE_BYTE_FIELD |
5228 | 5230 |
5229 | 5231 |
5230 } } // namespace v8::internal | 5232 } } // namespace v8::internal |
5231 | 5233 |
5232 #endif // V8_OBJECTS_INL_H_ | 5234 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |