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 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "double.h" | 7 #include "double.h" |
8 #include "factory.h" | 8 #include "factory.h" |
9 #include "hydrogen-infer-representation.h" | 9 #include "hydrogen-infer-representation.h" |
10 #include "property-details-inl.h" | 10 #include "property-details-inl.h" |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 } else if (value->IsHeapNumber()) { | 334 } else if (value->IsHeapNumber()) { |
335 result = HType::HeapNumber(); | 335 result = HType::HeapNumber(); |
336 } else if (value->IsString()) { | 336 } else if (value->IsString()) { |
337 result = HType::String(); | 337 result = HType::String(); |
338 } else if (value->IsBoolean()) { | 338 } else if (value->IsBoolean()) { |
339 result = HType::Boolean(); | 339 result = HType::Boolean(); |
340 } else if (value->IsJSObject()) { | 340 } else if (value->IsJSObject()) { |
341 result = HType::JSObject(); | 341 result = HType::JSObject(); |
342 } else if (value->IsJSArray()) { | 342 } else if (value->IsJSArray()) { |
343 result = HType::JSArray(); | 343 result = HType::JSArray(); |
| 344 } else if (value->IsHeapObject()) { |
| 345 result = HType::NonPrimitive(); |
344 } | 346 } |
345 return result; | 347 return result; |
346 } | 348 } |
347 | 349 |
348 | 350 |
349 bool HValue::IsDefinedAfter(HBasicBlock* other) const { | 351 bool HValue::IsDefinedAfter(HBasicBlock* other) const { |
350 return block()->block_id() > other->block_id(); | 352 return block()->block_id() > other->block_id(); |
351 } | 353 } |
352 | 354 |
353 | 355 |
(...skipping 4428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4782 break; | 4784 break; |
4783 case kExternalMemory: | 4785 case kExternalMemory: |
4784 stream->Add("[external-memory]"); | 4786 stream->Add("[external-memory]"); |
4785 break; | 4787 break; |
4786 } | 4788 } |
4787 | 4789 |
4788 stream->Add("@%d", offset()); | 4790 stream->Add("@%d", offset()); |
4789 } | 4791 } |
4790 | 4792 |
4791 } } // namespace v8::internal | 4793 } } // namespace v8::internal |
OLD | NEW |