| 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 6540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6551 return type == JS_GLOBAL_OBJECT_TYPE || type == JS_BUILTINS_OBJECT_TYPE; | 6551 return type == JS_GLOBAL_OBJECT_TYPE || type == JS_BUILTINS_OBJECT_TYPE; |
| 6552 } | 6552 } |
| 6553 | 6553 |
| 6554 // Fires when the layout of an object with a leaf map changes. | 6554 // Fires when the layout of an object with a leaf map changes. |
| 6555 // This includes adding transitions to the leaf map or changing | 6555 // This includes adding transitions to the leaf map or changing |
| 6556 // the descriptor array. | 6556 // the descriptor array. |
| 6557 inline void NotifyLeafMapLayoutChange(); | 6557 inline void NotifyLeafMapLayoutChange(); |
| 6558 | 6558 |
| 6559 inline bool CanOmitMapChecks(); | 6559 inline bool CanOmitMapChecks(); |
| 6560 | 6560 |
| 6561 void AddDependentCompilationInfo(DependentCode::DependencyGroup group, | 6561 static void AddDependentCompilationInfo(Handle<Map> map, |
| 6562 CompilationInfo* info); | 6562 DependentCode::DependencyGroup group, |
| 6563 CompilationInfo* info); |
| 6563 | 6564 |
| 6564 void AddDependentCode(DependentCode::DependencyGroup group, | 6565 static void AddDependentCode(Handle<Map> map, |
| 6565 Handle<Code> code); | 6566 DependentCode::DependencyGroup group, |
| 6566 void AddDependentIC(Handle<Code> stub); | 6567 Handle<Code> code); |
| 6568 static void AddDependentIC(Handle<Map> map, |
| 6569 Handle<Code> stub); |
| 6567 | 6570 |
| 6568 bool IsMapInArrayPrototypeChain(); | 6571 bool IsMapInArrayPrototypeChain(); |
| 6569 | 6572 |
| 6570 // Dispatched behavior. | 6573 // Dispatched behavior. |
| 6571 DECLARE_PRINTER(Map) | 6574 DECLARE_PRINTER(Map) |
| 6572 DECLARE_VERIFIER(Map) | 6575 DECLARE_VERIFIER(Map) |
| 6573 | 6576 |
| 6574 #ifdef VERIFY_HEAP | 6577 #ifdef VERIFY_HEAP |
| 6575 void SharedMapVerify(); | 6578 void SharedMapVerify(); |
| 6576 void VerifyOmittedMapChecks(); | 6579 void VerifyOmittedMapChecks(); |
| (...skipping 3222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9799 // a change of the type of the cell's contents, code dependent on the cell | 9802 // a change of the type of the cell's contents, code dependent on the cell |
| 9800 // will be deoptimized. | 9803 // will be deoptimized. |
| 9801 static void SetValueInferType(Handle<PropertyCell> cell, | 9804 static void SetValueInferType(Handle<PropertyCell> cell, |
| 9802 Handle<Object> value); | 9805 Handle<Object> value); |
| 9803 | 9806 |
| 9804 // Computes the new type of the cell's contents for the given value, but | 9807 // Computes the new type of the cell's contents for the given value, but |
| 9805 // without actually modifying the 'type' field. | 9808 // without actually modifying the 'type' field. |
| 9806 static Handle<HeapType> UpdatedType(Handle<PropertyCell> cell, | 9809 static Handle<HeapType> UpdatedType(Handle<PropertyCell> cell, |
| 9807 Handle<Object> value); | 9810 Handle<Object> value); |
| 9808 | 9811 |
| 9809 void AddDependentCompilationInfo(CompilationInfo* info); | 9812 static void AddDependentCompilationInfo(Handle<PropertyCell> cell, |
| 9810 | 9813 CompilationInfo* info); |
| 9811 void AddDependentCode(Handle<Code> code); | |
| 9812 | 9814 |
| 9813 // Casting. | 9815 // Casting. |
| 9814 static inline PropertyCell* cast(Object* obj); | 9816 static inline PropertyCell* cast(Object* obj); |
| 9815 | 9817 |
| 9816 inline Address TypeAddress() { | 9818 inline Address TypeAddress() { |
| 9817 return address() + kTypeOffset; | 9819 return address() + kTypeOffset; |
| 9818 } | 9820 } |
| 9819 | 9821 |
| 9820 // Dispatched behavior. | 9822 // Dispatched behavior. |
| 9821 DECLARE_PRINTER(PropertyCell) | 9823 DECLARE_PRINTER(PropertyCell) |
| (...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11057 } else { | 11059 } else { |
| 11058 value &= ~(1 << bit_position); | 11060 value &= ~(1 << bit_position); |
| 11059 } | 11061 } |
| 11060 return value; | 11062 return value; |
| 11061 } | 11063 } |
| 11062 }; | 11064 }; |
| 11063 | 11065 |
| 11064 } } // namespace v8::internal | 11066 } } // namespace v8::internal |
| 11065 | 11067 |
| 11066 #endif // V8_OBJECTS_H_ | 11068 #endif // V8_OBJECTS_H_ |
| OLD | NEW |