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 4442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4453 ACCESSORS(SharedFunctionInfo, optimized_code_map, Object, | 4453 ACCESSORS(SharedFunctionInfo, optimized_code_map, Object, |
4454 kOptimizedCodeMapOffset) | 4454 kOptimizedCodeMapOffset) |
4455 ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) | 4455 ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) |
4456 ACCESSORS(SharedFunctionInfo, initial_map, Object, kInitialMapOffset) | 4456 ACCESSORS(SharedFunctionInfo, initial_map, Object, kInitialMapOffset) |
4457 ACCESSORS(SharedFunctionInfo, instance_class_name, Object, | 4457 ACCESSORS(SharedFunctionInfo, instance_class_name, Object, |
4458 kInstanceClassNameOffset) | 4458 kInstanceClassNameOffset) |
4459 ACCESSORS(SharedFunctionInfo, function_data, Object, kFunctionDataOffset) | 4459 ACCESSORS(SharedFunctionInfo, function_data, Object, kFunctionDataOffset) |
4460 ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset) | 4460 ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset) |
4461 ACCESSORS(SharedFunctionInfo, debug_info, Object, kDebugInfoOffset) | 4461 ACCESSORS(SharedFunctionInfo, debug_info, Object, kDebugInfoOffset) |
4462 ACCESSORS(SharedFunctionInfo, inferred_name, String, kInferredNameOffset) | 4462 ACCESSORS(SharedFunctionInfo, inferred_name, String, kInferredNameOffset) |
4463 ACCESSORS(SharedFunctionInfo, this_property_assignments, Object, | |
4464 kThisPropertyAssignmentsOffset) | |
4465 SMI_ACCESSORS(SharedFunctionInfo, ast_node_count, kAstNodeCountOffset) | 4463 SMI_ACCESSORS(SharedFunctionInfo, ast_node_count, kAstNodeCountOffset) |
4466 | 4464 |
4467 | 4465 |
4468 SMI_ACCESSORS(FunctionTemplateInfo, length, kLengthOffset) | 4466 SMI_ACCESSORS(FunctionTemplateInfo, length, kLengthOffset) |
4469 BOOL_ACCESSORS(FunctionTemplateInfo, flag, hidden_prototype, | 4467 BOOL_ACCESSORS(FunctionTemplateInfo, flag, hidden_prototype, |
4470 kHiddenPrototypeBit) | 4468 kHiddenPrototypeBit) |
4471 BOOL_ACCESSORS(FunctionTemplateInfo, flag, undetectable, kUndetectableBit) | 4469 BOOL_ACCESSORS(FunctionTemplateInfo, flag, undetectable, kUndetectableBit) |
4472 BOOL_ACCESSORS(FunctionTemplateInfo, flag, needs_access_check, | 4470 BOOL_ACCESSORS(FunctionTemplateInfo, flag, needs_access_check, |
4473 kNeedsAccessCheckBit) | 4471 kNeedsAccessCheckBit) |
4474 BOOL_ACCESSORS(FunctionTemplateInfo, flag, read_only_prototype, | 4472 BOOL_ACCESSORS(FunctionTemplateInfo, flag, read_only_prototype, |
4475 kReadOnlyPrototypeBit) | 4473 kReadOnlyPrototypeBit) |
4476 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_expression, | 4474 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_expression, |
4477 kIsExpressionBit) | 4475 kIsExpressionBit) |
4478 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_toplevel, | 4476 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_toplevel, |
4479 kIsTopLevelBit) | 4477 kIsTopLevelBit) |
4480 | 4478 |
4481 BOOL_GETTER(SharedFunctionInfo, | |
4482 compiler_hints, | |
4483 has_only_simple_this_property_assignments, | |
4484 kHasOnlySimpleThisPropertyAssignments) | |
4485 BOOL_ACCESSORS(SharedFunctionInfo, | 4479 BOOL_ACCESSORS(SharedFunctionInfo, |
4486 compiler_hints, | 4480 compiler_hints, |
4487 allows_lazy_compilation, | 4481 allows_lazy_compilation, |
4488 kAllowLazyCompilation) | 4482 kAllowLazyCompilation) |
4489 BOOL_ACCESSORS(SharedFunctionInfo, | 4483 BOOL_ACCESSORS(SharedFunctionInfo, |
4490 compiler_hints, | 4484 compiler_hints, |
4491 allows_lazy_compilation_without_context, | 4485 allows_lazy_compilation_without_context, |
4492 kAllowLazyCompilationWithoutContext) | 4486 kAllowLazyCompilationWithoutContext) |
4493 BOOL_ACCESSORS(SharedFunctionInfo, | 4487 BOOL_ACCESSORS(SharedFunctionInfo, |
4494 compiler_hints, | 4488 compiler_hints, |
(...skipping 12 matching lines...) Expand all Loading... |
4507 SMI_ACCESSORS(SharedFunctionInfo, expected_nof_properties, | 4501 SMI_ACCESSORS(SharedFunctionInfo, expected_nof_properties, |
4508 kExpectedNofPropertiesOffset) | 4502 kExpectedNofPropertiesOffset) |
4509 SMI_ACCESSORS(SharedFunctionInfo, num_literals, kNumLiteralsOffset) | 4503 SMI_ACCESSORS(SharedFunctionInfo, num_literals, kNumLiteralsOffset) |
4510 SMI_ACCESSORS(SharedFunctionInfo, start_position_and_type, | 4504 SMI_ACCESSORS(SharedFunctionInfo, start_position_and_type, |
4511 kStartPositionAndTypeOffset) | 4505 kStartPositionAndTypeOffset) |
4512 SMI_ACCESSORS(SharedFunctionInfo, end_position, kEndPositionOffset) | 4506 SMI_ACCESSORS(SharedFunctionInfo, end_position, kEndPositionOffset) |
4513 SMI_ACCESSORS(SharedFunctionInfo, function_token_position, | 4507 SMI_ACCESSORS(SharedFunctionInfo, function_token_position, |
4514 kFunctionTokenPositionOffset) | 4508 kFunctionTokenPositionOffset) |
4515 SMI_ACCESSORS(SharedFunctionInfo, compiler_hints, | 4509 SMI_ACCESSORS(SharedFunctionInfo, compiler_hints, |
4516 kCompilerHintsOffset) | 4510 kCompilerHintsOffset) |
4517 SMI_ACCESSORS(SharedFunctionInfo, this_property_assignments_count, | |
4518 kThisPropertyAssignmentsCountOffset) | |
4519 SMI_ACCESSORS(SharedFunctionInfo, opt_count, kOptCountOffset) | 4511 SMI_ACCESSORS(SharedFunctionInfo, opt_count, kOptCountOffset) |
4520 SMI_ACCESSORS(SharedFunctionInfo, counters, kCountersOffset) | 4512 SMI_ACCESSORS(SharedFunctionInfo, counters, kCountersOffset) |
4521 SMI_ACCESSORS(SharedFunctionInfo, | 4513 SMI_ACCESSORS(SharedFunctionInfo, |
4522 stress_deopt_counter, | 4514 stress_deopt_counter, |
4523 kStressDeoptCounterOffset) | 4515 kStressDeoptCounterOffset) |
4524 #else | 4516 #else |
4525 | 4517 |
4526 #define PSEUDO_SMI_ACCESSORS_LO(holder, name, offset) \ | 4518 #define PSEUDO_SMI_ACCESSORS_LO(holder, name, offset) \ |
4527 STATIC_ASSERT(holder::offset % kPointerSize == 0); \ | 4519 STATIC_ASSERT(holder::offset % kPointerSize == 0); \ |
4528 int holder::name() { \ | 4520 int holder::name() { \ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4560 start_position_and_type, | 4552 start_position_and_type, |
4561 kStartPositionAndTypeOffset) | 4553 kStartPositionAndTypeOffset) |
4562 | 4554 |
4563 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, | 4555 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, |
4564 function_token_position, | 4556 function_token_position, |
4565 kFunctionTokenPositionOffset) | 4557 kFunctionTokenPositionOffset) |
4566 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, | 4558 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, |
4567 compiler_hints, | 4559 compiler_hints, |
4568 kCompilerHintsOffset) | 4560 kCompilerHintsOffset) |
4569 | 4561 |
| 4562 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, opt_count, kOptCountOffset) |
| 4563 |
| 4564 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, counters, kCountersOffset) |
4570 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, | 4565 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, |
4571 this_property_assignments_count, | |
4572 kThisPropertyAssignmentsCountOffset) | |
4573 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, opt_count, kOptCountOffset) | |
4574 | |
4575 PSEUDO_SMI_ACCESSORS_LO(SharedFunctionInfo, counters, kCountersOffset) | |
4576 PSEUDO_SMI_ACCESSORS_HI(SharedFunctionInfo, | |
4577 stress_deopt_counter, | 4566 stress_deopt_counter, |
4578 kStressDeoptCounterOffset) | 4567 kStressDeoptCounterOffset) |
4579 #endif | 4568 #endif |
4580 | 4569 |
4581 | 4570 |
4582 int SharedFunctionInfo::construction_count() { | 4571 int SharedFunctionInfo::construction_count() { |
4583 return READ_BYTE_FIELD(this, kConstructionCountOffset); | 4572 return READ_BYTE_FIELD(this, kConstructionCountOffset); |
4584 } | 4573 } |
4585 | 4574 |
4586 | 4575 |
(...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6221 #undef WRITE_UINT32_FIELD | 6210 #undef WRITE_UINT32_FIELD |
6222 #undef READ_SHORT_FIELD | 6211 #undef READ_SHORT_FIELD |
6223 #undef WRITE_SHORT_FIELD | 6212 #undef WRITE_SHORT_FIELD |
6224 #undef READ_BYTE_FIELD | 6213 #undef READ_BYTE_FIELD |
6225 #undef WRITE_BYTE_FIELD | 6214 #undef WRITE_BYTE_FIELD |
6226 | 6215 |
6227 | 6216 |
6228 } } // namespace v8::internal | 6217 } } // namespace v8::internal |
6229 | 6218 |
6230 #endif // V8_OBJECTS_INL_H_ | 6219 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |