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

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

Issue 147493005: Revert "Use HType::NonPrimitive() for non primitive HConstants." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 // 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 } else if (value->IsHeapNumber()) { 354 } else if (value->IsHeapNumber()) {
355 result = HType::HeapNumber(); 355 result = HType::HeapNumber();
356 } else if (value->IsString()) { 356 } else if (value->IsString()) {
357 result = HType::String(); 357 result = HType::String();
358 } else if (value->IsBoolean()) { 358 } else if (value->IsBoolean()) {
359 result = HType::Boolean(); 359 result = HType::Boolean();
360 } else if (value->IsJSObject()) { 360 } else if (value->IsJSObject()) {
361 result = HType::JSObject(); 361 result = HType::JSObject();
362 } else if (value->IsJSArray()) { 362 } else if (value->IsJSArray()) {
363 result = HType::JSArray(); 363 result = HType::JSArray();
364 } else if (value->IsHeapObject()) {
365 // TODO(bmeurer): This is currently a work-around until the new type system
366 // is in place, where we have more precise types.
367 result = HType::NonPrimitive();
368 } 364 }
369 return result; 365 return result;
370 } 366 }
371 367
372 368
373 bool HValue::IsDefinedAfter(HBasicBlock* other) const { 369 bool HValue::IsDefinedAfter(HBasicBlock* other) const {
374 return block()->block_id() > other->block_id(); 370 return block()->block_id() > other->block_id();
375 } 371 }
376 372
377 373
(...skipping 4042 matching lines...) Expand 10 before | Expand all | Expand 10 after
4420 break; 4416 break;
4421 case kExternalMemory: 4417 case kExternalMemory:
4422 stream->Add("[external-memory]"); 4418 stream->Add("[external-memory]");
4423 break; 4419 break;
4424 } 4420 }
4425 4421
4426 stream->Add("@%d", offset()); 4422 stream->Add("@%d", offset());
4427 } 4423 }
4428 4424
4429 } } // namespace v8::internal 4425 } } // 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