Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 In file included from stack_allocated.cpp:5: | 1 In file included from stack_allocated.cpp:5: |
| 2 ./stack_allocated.h:14:1: warning: [blink-gc] Class 'PartObject' requires a trac e method. | 2 ./stack_allocated.h:14:1: warning: [blink-gc] Class 'PartObject' requires a trac e method. |
| 3 class PartObject { | 3 class PartObject { |
| 4 ^ | 4 ^ |
| 5 ./stack_allocated.h:17:5: note: [blink-gc] Untraced field 'm_obj' declared here: | 5 ./stack_allocated.h:17:5: note: [blink-gc] Untraced field 'm_obj' declared here: |
| 6 Member<HeapObject> m_obj; // Needs tracing. | 6 Member<HeapObject> m_obj; // Needs tracing. |
| 7 ^ | 7 ^ |
| 8 ./stack_allocated.h:26:1: warning: [blink-gc] Class 'HeapObject' contains invali d fields. | 8 ./stack_allocated.h:26:1: warning: [blink-gc] Class 'HeapObject' contains invali d fields. |
| 9 class HeapObject : public GarbageCollected<HeapObject> { | 9 class HeapObject : public GarbageCollected<HeapObject> { |
| 10 ^ | 10 ^ |
| 11 ./stack_allocated.h:30:5: note: [blink-gc] Stack-allocated field 'm_part' declar ed here: | 11 ./stack_allocated.h:30:5: note: [blink-gc] Stack-allocated field 'm_part' declar ed here: |
| 12 StackObject m_part; // Cannot embed a stack allocated object. | 12 StackObject m_part; // Cannot embed a stack allocated object. |
| 13 ^ | 13 ^ |
| 14 ./stack_allocated.h:34:27: warning: [blink-gc] Stack-allocated class 'DerivedHea pObject' derives class 'HeapObject' which is garbage collected. | 14 ./stack_allocated.h:34:27: warning: [blink-gc] Stack-allocated class 'DerivedHea pObject' derives class 'HeapObject' which is garbage collected. |
| 15 class DerivedHeapObject : public HeapObject, public StackObject { | 15 class DerivedHeapObject : public HeapObject, public StackObject { |
| 16 ^ | 16 ^ |
| 17 ./stack_allocated.h:38:28: warning: [blink-gc] Stack-allocated class 'DerivedHea pObject2' derives class 'HeapObject' which is garbage collected. | 17 ./stack_allocated.h:38:28: warning: [blink-gc] Stack-allocated class 'DerivedHea pObject2' derives class 'HeapObject' which is garbage collected. |
| 18 class DerivedHeapObject2 : public HeapObject { | 18 class DerivedHeapObject2 : public HeapObject { |
| 19 ^ | 19 ^ |
| 20 ./stack_allocated.h:39:3: warning: [blink-gc] Garbage collected class 'DerivedHe apObject2' is not permitted to override its new operator. | 20 ./stack_allocated.h:39:3: warning: [blink-gc] Garbage collected class 'DerivedHe apObject2' is not permitted to override its new operator. |
| 21 STACK_ALLOCATED(); | 21 STACK_ALLOCATED(); |
| 22 ^ | 22 ^ |
| 23 ./heap/stubs.h:149:5: note: expanded from macro 'STACK_ALLOCATED' | 23 ./heap/stubs.h:184:5: note: expanded from macro 'STACK_ALLOCATED' |
|
dcheng
2016/12/20 21:23:46
I think the test expectation is wrong. This is on
sof
2016/12/20 21:30:28
Thanks, please do. "git cl format" is a mixed bles
| |
| 24 __attribute__((annotate("blink_stack_allocated"))) \ | 24 __attribute__((annotate("blink_stack_allocated"))) \ |
| 25 ^ | 25 ^ |
| 26 stack_allocated.cpp:12:1: warning: [blink-gc] Class 'AnonStackObject' contains i nvalid fields. | 26 stack_allocated.cpp:12:1: warning: [blink-gc] Class 'AnonStackObject' contains i nvalid fields. |
| 27 class AnonStackObject : public StackObject { | 27 class AnonStackObject : public StackObject { |
| 28 ^ | 28 ^ |
| 29 stack_allocated.cpp:14:5: note: [blink-gc] Raw pointer field 'm_obj' to a GC man aged class declared here: | 29 stack_allocated.cpp:14:5: note: [blink-gc] Raw pointer field 'm_obj' to a GC man aged class declared here: |
| 30 HeapObject* m_obj; | 30 HeapObject* m_obj; |
| 31 ^ | 31 ^ |
| 32 6 warnings generated. | 32 6 warnings generated. |
| OLD | NEW |