| 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   474 } |   474 } | 
|   475  |   475  | 
|   476  |   476  | 
|   477 bool LCodeGen::IsInteger32(LConstantOperand* op) const { |   477 bool LCodeGen::IsInteger32(LConstantOperand* op) const { | 
|   478   return chunk_->LookupLiteralRepresentation(op).IsInteger32(); |   478   return chunk_->LookupLiteralRepresentation(op).IsInteger32(); | 
|   479 } |   479 } | 
|   480  |   480  | 
|   481  |   481  | 
|   482 int LCodeGen::ToInteger32(LConstantOperand* op) const { |   482 int LCodeGen::ToInteger32(LConstantOperand* op) const { | 
|   483   HConstant* constant = chunk_->LookupConstant(op); |   483   HConstant* constant = chunk_->LookupConstant(op); | 
|   484   ASSERT(chunk_->LookupLiteralRepresentation(op).IsInteger32()); |  | 
|   485   ASSERT(constant->HasInteger32Value()); |  | 
|   486   return constant->Integer32Value(); |   484   return constant->Integer32Value(); | 
|   487 } |   485 } | 
|   488  |   486  | 
|   489  |   487  | 
|   490 double LCodeGen::ToDouble(LConstantOperand* op) const { |   488 double LCodeGen::ToDouble(LConstantOperand* op) const { | 
|   491   HConstant* constant = chunk_->LookupConstant(op); |   489   HConstant* constant = chunk_->LookupConstant(op); | 
|   492   ASSERT(constant->HasDoubleValue()); |   490   ASSERT(constant->HasDoubleValue()); | 
|   493   return constant->DoubleValue(); |   491   return constant->DoubleValue(); | 
|   494 } |   492 } | 
|   495  |   493  | 
| (...skipping 5326 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  5822   __ Subu(scratch, result, scratch); |  5820   __ Subu(scratch, result, scratch); | 
|  5823   __ lw(result, FieldMemOperand(scratch, |  5821   __ lw(result, FieldMemOperand(scratch, | 
|  5824                                 FixedArray::kHeaderSize - kPointerSize)); |  5822                                 FixedArray::kHeaderSize - kPointerSize)); | 
|  5825   __ bind(&done); |  5823   __ bind(&done); | 
|  5826 } |  5824 } | 
|  5827  |  5825  | 
|  5828  |  5826  | 
|  5829 #undef __ |  5827 #undef __ | 
|  5830  |  5828  | 
|  5831 } }  // namespace v8::internal |  5829 } }  // namespace v8::internal | 
| OLD | NEW |