| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  361           len = String::cast(key)->length(); |  361           len = String::cast(key)->length(); | 
|  362         } |  362         } | 
|  363         for (; len < 18; len++) |  363         for (; len < 18; len++) | 
|  364           Put(' '); |  364           Put(' '); | 
|  365         if (key->IsString()) { |  365         if (key->IsString()) { | 
|  366           Put(String::cast(key)); |  366           Put(String::cast(key)); | 
|  367         } else { |  367         } else { | 
|  368           key->ShortPrint(); |  368           key->ShortPrint(); | 
|  369         } |  369         } | 
|  370         Add(": "); |  370         Add(": "); | 
|  371         Object* value = js_object->FastPropertyAt(descs->GetFieldIndex(i)); |  371         Object* value = js_object->RawFastPropertyAt(descs->GetFieldIndex(i)); | 
|  372         Add("%o\n", value); |  372         Add("%o\n", value); | 
|  373       } |  373       } | 
|  374     } |  374     } | 
|  375   } |  375   } | 
|  376 } |  376 } | 
|  377  |  377  | 
|  378  |  378  | 
|  379 void StringStream::PrintFixedArray(FixedArray* array, unsigned int limit) { |  379 void StringStream::PrintFixedArray(FixedArray* array, unsigned int limit) { | 
|  380   Heap* heap = HEAP; |  380   Heap* heap = HEAP; | 
|  381   for (unsigned int i = 0; i < 10 && i < limit; i++) { |  381   for (unsigned int i = 0; i < 10 && i < limit; i++) { | 
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  585  |  585  | 
|  586 // Only grow once to the maximum allowable size. |  586 // Only grow once to the maximum allowable size. | 
|  587 char* NoAllocationStringAllocator::grow(unsigned* bytes) { |  587 char* NoAllocationStringAllocator::grow(unsigned* bytes) { | 
|  588   ASSERT(size_ >= *bytes); |  588   ASSERT(size_ >= *bytes); | 
|  589   *bytes = size_; |  589   *bytes = size_; | 
|  590   return space_; |  590   return space_; | 
|  591 } |  591 } | 
|  592  |  592  | 
|  593  |  593  | 
|  594 } }  // namespace v8::internal |  594 } }  // namespace v8::internal | 
| OLD | NEW |