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 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 2519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2530 }; | 2530 }; |
2531 | 2531 |
2532 Context* GetCreationContext(); | 2532 Context* GetCreationContext(); |
2533 | 2533 |
2534 // Enqueue change record for Object.observe. May cause GC. | 2534 // Enqueue change record for Object.observe. May cause GC. |
2535 static void EnqueueChangeRecord(Handle<JSObject> object, | 2535 static void EnqueueChangeRecord(Handle<JSObject> object, |
2536 const char* type, | 2536 const char* type, |
2537 Handle<Name> name, | 2537 Handle<Name> name, |
2538 Handle<Object> old_value); | 2538 Handle<Object> old_value); |
2539 | 2539 |
2540 static void MigrateToNewProperty(Handle<JSObject> object, | |
2541 Handle<Map> transition, | |
2542 Handle<Object> value); | |
2543 | |
2544 private: | 2540 private: |
2545 friend class DictionaryElementsAccessor; | 2541 friend class DictionaryElementsAccessor; |
2546 friend class JSReceiver; | 2542 friend class JSReceiver; |
2547 friend class Object; | 2543 friend class Object; |
2548 | 2544 |
2549 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map); | 2545 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map); |
2550 static void MigrateFastToSlow(Handle<JSObject> object, | 2546 static void MigrateFastToSlow(Handle<JSObject> object, |
2551 Handle<Map> new_map, | 2547 Handle<Map> new_map, |
2552 int expected_additional_properties); | 2548 int expected_additional_properties); |
2553 | 2549 |
(...skipping 8580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11134 } else { | 11130 } else { |
11135 value &= ~(1 << bit_position); | 11131 value &= ~(1 << bit_position); |
11136 } | 11132 } |
11137 return value; | 11133 return value; |
11138 } | 11134 } |
11139 }; | 11135 }; |
11140 | 11136 |
11141 } } // namespace v8::internal | 11137 } } // namespace v8::internal |
11142 | 11138 |
11143 #endif // V8_OBJECTS_H_ | 11139 #endif // V8_OBJECTS_H_ |
OLD | NEW |