| OLD | NEW | 
|---|
| 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 418 | 418 | 
| 419 | 419 | 
| 420 bool LCodeGen::IsTaggedConstant(LConstantOperand* op) const { | 420 bool LCodeGen::IsTaggedConstant(LConstantOperand* op) const { | 
| 421   return op->IsConstantOperand() && | 421   return op->IsConstantOperand() && | 
| 422       chunk_->LookupLiteralRepresentation(op).IsTagged(); | 422       chunk_->LookupLiteralRepresentation(op).IsTagged(); | 
| 423 } | 423 } | 
| 424 | 424 | 
| 425 | 425 | 
| 426 int LCodeGen::ToInteger32(LConstantOperand* op) const { | 426 int LCodeGen::ToInteger32(LConstantOperand* op) const { | 
| 427   HConstant* constant = chunk_->LookupConstant(op); | 427   HConstant* constant = chunk_->LookupConstant(op); | 
| 428   ASSERT(chunk_->LookupLiteralRepresentation(op).IsInteger32()); |  | 
| 429   ASSERT(constant->HasInteger32Value()); |  | 
| 430   return constant->Integer32Value(); | 428   return constant->Integer32Value(); | 
| 431 } | 429 } | 
| 432 | 430 | 
| 433 | 431 | 
| 434 double LCodeGen::ToDouble(LConstantOperand* op) const { | 432 double LCodeGen::ToDouble(LConstantOperand* op) const { | 
| 435   HConstant* constant = chunk_->LookupConstant(op); | 433   HConstant* constant = chunk_->LookupConstant(op); | 
| 436   ASSERT(constant->HasDoubleValue()); | 434   ASSERT(constant->HasDoubleValue()); | 
| 437   return constant->DoubleValue(); | 435   return constant->DoubleValue(); | 
| 438 } | 436 } | 
| 439 | 437 | 
| (...skipping 5136 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5576                                FixedArray::kHeaderSize - kPointerSize)); | 5574                                FixedArray::kHeaderSize - kPointerSize)); | 
| 5577   __ bind(&done); | 5575   __ bind(&done); | 
| 5578 } | 5576 } | 
| 5579 | 5577 | 
| 5580 | 5578 | 
| 5581 #undef __ | 5579 #undef __ | 
| 5582 | 5580 | 
| 5583 } }  // namespace v8::internal | 5581 } }  // namespace v8::internal | 
| 5584 | 5582 | 
| 5585 #endif  // V8_TARGET_ARCH_X64 | 5583 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW | 
|---|