Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: src/hydrogen-instructions.cc

Issue 279813002: Use HType::NonPrimitive() for unclassified HeapObjects (i.e. Maps). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698