Chromium Code Reviews| 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 <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 9639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9650 HeapType* type(); | 9650 HeapType* type(); |
| 9651 void set_type(HeapType* value, WriteBarrierMode mode = UPDATE_WRITE_BARRIER); | 9651 void set_type(HeapType* value, WriteBarrierMode mode = UPDATE_WRITE_BARRIER); |
| 9652 | 9652 |
| 9653 // [dependent_code]: dependent code that depends on the type of the global | 9653 // [dependent_code]: dependent code that depends on the type of the global |
| 9654 // property. | 9654 // property. |
| 9655 DECL_ACCESSORS(dependent_code, DependentCode) | 9655 DECL_ACCESSORS(dependent_code, DependentCode) |
| 9656 | 9656 |
| 9657 // Sets the value of the cell and updates the type field to be the union | 9657 // Sets the value of the cell and updates the type field to be the union |
| 9658 // of the cell's current type and the value's type. If the change causes | 9658 // of the cell's current type and the value's type. If the change causes |
| 9659 // a change of the type of the cell's contents, code dependent on the cell | 9659 // a change of the type of the cell's contents, code dependent on the cell |
| 9660 // will be deoptimized. | 9660 // will be deoptimized. |
|
Igor Sheludko
2014/12/15 15:11:48
Please add a comment about return value.
Jakob Kummerow
2014/12/15 15:18:34
Done.
| |
| 9661 static void SetValueInferType(Handle<PropertyCell> cell, | 9661 static Handle<Object> SetValueInferType(Handle<PropertyCell> cell, |
| 9662 Handle<Object> value); | 9662 Handle<Object> value); |
| 9663 | 9663 |
| 9664 // Computes the new type of the cell's contents for the given value, but | 9664 // Computes the new type of the cell's contents for the given value, but |
| 9665 // without actually modifying the 'type' field. | 9665 // without actually modifying the 'type' field. |
| 9666 static Handle<HeapType> UpdatedType(Handle<PropertyCell> cell, | 9666 static Handle<HeapType> UpdatedType(Handle<PropertyCell> cell, |
| 9667 Handle<Object> value); | 9667 Handle<Object> value); |
| 9668 | 9668 |
| 9669 static void AddDependentCompilationInfo(Handle<PropertyCell> cell, | 9669 static void AddDependentCompilationInfo(Handle<PropertyCell> cell, |
| 9670 CompilationInfo* info); | 9670 CompilationInfo* info); |
| 9671 | 9671 |
| 9672 DECLARE_CAST(PropertyCell) | 9672 DECLARE_CAST(PropertyCell) |
| (...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 11040 } else { | 11040 } else { |
| 11041 value &= ~(1 << bit_position); | 11041 value &= ~(1 << bit_position); |
| 11042 } | 11042 } |
| 11043 return value; | 11043 return value; |
| 11044 } | 11044 } |
| 11045 }; | 11045 }; |
| 11046 | 11046 |
| 11047 } } // namespace v8::internal | 11047 } } // namespace v8::internal |
| 11048 | 11048 |
| 11049 #endif // V8_OBJECTS_H_ | 11049 #endif // V8_OBJECTS_H_ |
| OLD | NEW |