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

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

Issue 15737003: Handle holes in smi-untag from LoadKeyed requiring hole handling. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Respect hole-mode Created 7 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 | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | 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 5393 matching lines...) Expand 10 before | Expand all | Expand 10 after
5404 SetOperandAt(1, key); 5404 SetOperandAt(1, key);
5405 SetOperandAt(2, dependency != NULL ? dependency : obj); 5405 SetOperandAt(2, dependency != NULL ? dependency : obj);
5406 5406
5407 if (!is_external()) { 5407 if (!is_external()) {
5408 // I can detect the case between storing double (holey and fast) and 5408 // I can detect the case between storing double (holey and fast) and
5409 // smi/object by looking at elements_kind_. 5409 // smi/object by looking at elements_kind_.
5410 ASSERT(IsFastSmiOrObjectElementsKind(elements_kind) || 5410 ASSERT(IsFastSmiOrObjectElementsKind(elements_kind) ||
5411 IsFastDoubleElementsKind(elements_kind)); 5411 IsFastDoubleElementsKind(elements_kind));
5412 5412
5413 if (IsFastSmiOrObjectElementsKind(elements_kind)) { 5413 if (IsFastSmiOrObjectElementsKind(elements_kind)) {
5414 if (elements_kind == FAST_SMI_ELEMENTS) { 5414 if (IsFastSmiElementsKind(elements_kind)) {
5415 set_type(HType::Smi()); 5415 set_type(HType::Smi());
5416 } 5416 }
5417 5417
5418 set_representation(Representation::Tagged()); 5418 set_representation(Representation::Tagged());
5419 SetGVNFlag(kDependsOnArrayElements); 5419 SetGVNFlag(kDependsOnArrayElements);
5420 } else { 5420 } else {
5421 set_representation(Representation::Double()); 5421 set_representation(Representation::Double());
5422 SetGVNFlag(kDependsOnDoubleArrayElements); 5422 SetGVNFlag(kDependsOnDoubleArrayElements);
5423 } 5423 }
5424 } else { 5424 } else {
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
6461 virtual bool IsDeletable() const { return true; } 6461 virtual bool IsDeletable() const { return true; }
6462 }; 6462 };
6463 6463
6464 6464
6465 #undef DECLARE_INSTRUCTION 6465 #undef DECLARE_INSTRUCTION
6466 #undef DECLARE_CONCRETE_INSTRUCTION 6466 #undef DECLARE_CONCRETE_INSTRUCTION
6467 6467
6468 } } // namespace v8::internal 6468 } } // namespace v8::internal
6469 6469
6470 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 6470 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698