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 4487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4498 DCHECK(!constructor_or_backpointer()->IsMap()); | 4498 DCHECK(!constructor_or_backpointer()->IsMap()); |
4499 set_constructor_or_backpointer(constructor, mode); | 4499 set_constructor_or_backpointer(constructor, mode); |
4500 } | 4500 } |
4501 | 4501 |
4502 | 4502 |
4503 Handle<Map> Map::CopyInitialMap(Handle<Map> map) { | 4503 Handle<Map> Map::CopyInitialMap(Handle<Map> map) { |
4504 return CopyInitialMap(map, map->instance_size(), map->GetInObjectProperties(), | 4504 return CopyInitialMap(map, map->instance_size(), map->GetInObjectProperties(), |
4505 map->unused_property_fields()); | 4505 map->unused_property_fields()); |
4506 } | 4506 } |
4507 | 4507 |
| 4508 Object* JSBoundFunction::raw_bound_target_function() const { |
| 4509 return READ_FIELD(this, kBoundTargetFunctionOffset); |
| 4510 } |
4508 | 4511 |
4509 ACCESSORS(JSBoundFunction, bound_target_function, JSReceiver, | 4512 ACCESSORS(JSBoundFunction, bound_target_function, JSReceiver, |
4510 kBoundTargetFunctionOffset) | 4513 kBoundTargetFunctionOffset) |
4511 ACCESSORS(JSBoundFunction, bound_this, Object, kBoundThisOffset) | 4514 ACCESSORS(JSBoundFunction, bound_this, Object, kBoundThisOffset) |
4512 ACCESSORS(JSBoundFunction, bound_arguments, FixedArray, kBoundArgumentsOffset) | 4515 ACCESSORS(JSBoundFunction, bound_arguments, FixedArray, kBoundArgumentsOffset) |
4513 | 4516 |
4514 ACCESSORS(JSFunction, shared, SharedFunctionInfo, kSharedFunctionInfoOffset) | 4517 ACCESSORS(JSFunction, shared, SharedFunctionInfo, kSharedFunctionInfoOffset) |
4515 ACCESSORS(JSFunction, feedback_vector_cell, Cell, kFeedbackVectorOffset) | 4518 ACCESSORS(JSFunction, feedback_vector_cell, Cell, kFeedbackVectorOffset) |
4516 ACCESSORS(JSFunction, next_function_link, Object, kNextFunctionLinkOffset) | 4519 ACCESSORS(JSFunction, next_function_link, Object, kNextFunctionLinkOffset) |
4517 | 4520 |
(...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6454 | 6457 |
6455 ACCESSORS(JSStringIterator, string, String, kStringOffset) | 6458 ACCESSORS(JSStringIterator, string, String, kStringOffset) |
6456 SMI_ACCESSORS(JSStringIterator, index, kNextIndexOffset) | 6459 SMI_ACCESSORS(JSStringIterator, index, kNextIndexOffset) |
6457 | 6460 |
6458 } // namespace internal | 6461 } // namespace internal |
6459 } // namespace v8 | 6462 } // namespace v8 |
6460 | 6463 |
6461 #include "src/objects/object-macros-undef.h" | 6464 #include "src/objects/object-macros-undef.h" |
6462 | 6465 |
6463 #endif // V8_OBJECTS_INL_H_ | 6466 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |