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

Side by Side Diff: src/string-stream.cc

Issue 14850006: Use mutable heapnumbers to store doubles in fields. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ported to ARM and x64 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/runtime.cc ('k') | src/stub-cache.h » ('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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698