| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 | 424 |
| 425 | 425 |
| 426 XMMRegister LCodeGen::ToDoubleRegister(LOperand* op) const { | 426 XMMRegister LCodeGen::ToDoubleRegister(LOperand* op) const { |
| 427 ASSERT(op->IsDoubleRegister()); | 427 ASSERT(op->IsDoubleRegister()); |
| 428 return ToDoubleRegister(op->index()); | 428 return ToDoubleRegister(op->index()); |
| 429 } | 429 } |
| 430 | 430 |
| 431 | 431 |
| 432 bool LCodeGen::IsInteger32Constant(LConstantOperand* op) const { | 432 bool LCodeGen::IsInteger32Constant(LConstantOperand* op) const { |
| 433 return op->IsConstantOperand() && | 433 return op->IsConstantOperand() && |
| 434 chunk_->LookupLiteralRepresentation(op).IsInteger32(); | 434 chunk_->LookupLiteralRepresentation(op).IsSmiOrInteger32(); |
| 435 } | 435 } |
| 436 | 436 |
| 437 | 437 |
| 438 bool LCodeGen::IsSmiConstant(LConstantOperand* op) const { | 438 bool LCodeGen::IsSmiConstant(LConstantOperand* op) const { |
| 439 return op->IsConstantOperand() && | 439 return op->IsConstantOperand() && |
| 440 chunk_->LookupLiteralRepresentation(op).IsSmi(); | 440 chunk_->LookupLiteralRepresentation(op).IsSmi(); |
| 441 } | 441 } |
| 442 | 442 |
| 443 | 443 |
| 444 bool LCodeGen::IsTaggedConstant(LConstantOperand* op) const { | 444 bool LCodeGen::IsTaggedConstant(LConstantOperand* op) const { |
| (...skipping 5235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5680 FixedArray::kHeaderSize - kPointerSize)); | 5680 FixedArray::kHeaderSize - kPointerSize)); |
| 5681 __ bind(&done); | 5681 __ bind(&done); |
| 5682 } | 5682 } |
| 5683 | 5683 |
| 5684 | 5684 |
| 5685 #undef __ | 5685 #undef __ |
| 5686 | 5686 |
| 5687 } } // namespace v8::internal | 5687 } } // namespace v8::internal |
| 5688 | 5688 |
| 5689 #endif // V8_TARGET_ARCH_X64 | 5689 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |