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 11 matching lines...) Loading... |
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #ifndef V8_OBJECTS_H_ | 28 #ifndef V8_OBJECTS_H_ |
29 #define V8_OBJECTS_H_ | 29 #define V8_OBJECTS_H_ |
30 | 30 |
31 #include "allocation.h" | 31 #include "allocation.h" |
| 32 #include "assert-scope.h" |
32 #include "builtins.h" | 33 #include "builtins.h" |
33 #include "elements-kind.h" | 34 #include "elements-kind.h" |
34 #include "list.h" | 35 #include "list.h" |
35 #include "property-details.h" | 36 #include "property-details.h" |
36 #include "smart-pointers.h" | 37 #include "smart-pointers.h" |
37 #include "unicode-inl.h" | 38 #include "unicode-inl.h" |
38 #if V8_TARGET_ARCH_ARM | 39 #if V8_TARGET_ARCH_ARM |
39 #include "arm/constants-arm.h" | 40 #include "arm/constants-arm.h" |
40 #elif V8_TARGET_ARCH_MIPS | 41 #elif V8_TARGET_ARCH_MIPS |
41 #include "mips/constants-mips.h" | 42 #include "mips/constants-mips.h" |
(...skipping 1369 matching lines...) Loading... |
1411 static inline Object** RawField(HeapObject* obj, int offset); | 1412 static inline Object** RawField(HeapObject* obj, int offset); |
1412 | 1413 |
1413 // Casting. | 1414 // Casting. |
1414 static inline HeapObject* cast(Object* obj); | 1415 static inline HeapObject* cast(Object* obj); |
1415 | 1416 |
1416 // Return the write barrier mode for this. Callers of this function | 1417 // Return the write barrier mode for this. Callers of this function |
1417 // must be able to present a reference to an AssertNoAllocation | 1418 // must be able to present a reference to an AssertNoAllocation |
1418 // object as a sign that they are not going to use this function | 1419 // object as a sign that they are not going to use this function |
1419 // from code that allocates and thus invalidates the returned write | 1420 // from code that allocates and thus invalidates the returned write |
1420 // barrier mode. | 1421 // barrier mode. |
1421 inline WriteBarrierMode GetWriteBarrierMode(const AssertNoAllocation&); | 1422 inline WriteBarrierMode GetWriteBarrierMode( |
| 1423 const DisallowHeapAllocation& promise); |
1422 | 1424 |
1423 // Dispatched behavior. | 1425 // Dispatched behavior. |
1424 void HeapObjectShortPrint(StringStream* accumulator); | 1426 void HeapObjectShortPrint(StringStream* accumulator); |
1425 #ifdef OBJECT_PRINT | 1427 #ifdef OBJECT_PRINT |
1426 inline void HeapObjectPrint() { | 1428 inline void HeapObjectPrint() { |
1427 HeapObjectPrint(stdout); | 1429 HeapObjectPrint(stdout); |
1428 } | 1430 } |
1429 void HeapObjectPrint(FILE* out); | 1431 void HeapObjectPrint(FILE* out); |
1430 void PrintHeader(FILE* out, const char* id); | 1432 void PrintHeader(FILE* out, const char* id); |
1431 #endif | 1433 #endif |
(...skipping 8197 matching lines...) Loading... |
9629 } else { | 9631 } else { |
9630 value &= ~(1 << bit_position); | 9632 value &= ~(1 << bit_position); |
9631 } | 9633 } |
9632 return value; | 9634 return value; |
9633 } | 9635 } |
9634 }; | 9636 }; |
9635 | 9637 |
9636 } } // namespace v8::internal | 9638 } } // namespace v8::internal |
9637 | 9639 |
9638 #endif // V8_OBJECTS_H_ | 9640 #endif // V8_OBJECTS_H_ |
OLD | NEW |