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

Side by Side Diff: src/objects-printer.cc

Issue 211333002: Replace HeapNumber as doublebox with an explicit MutableHeapNumber. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 switch (instance_type) { 85 switch (instance_type) {
86 case SYMBOL_TYPE: 86 case SYMBOL_TYPE:
87 Symbol::cast(this)->SymbolPrint(out); 87 Symbol::cast(this)->SymbolPrint(out);
88 break; 88 break;
89 case MAP_TYPE: 89 case MAP_TYPE:
90 Map::cast(this)->MapPrint(out); 90 Map::cast(this)->MapPrint(out);
91 break; 91 break;
92 case HEAP_NUMBER_TYPE: 92 case HEAP_NUMBER_TYPE:
93 HeapNumber::cast(this)->HeapNumberPrint(out); 93 HeapNumber::cast(this)->HeapNumberPrint(out);
94 break; 94 break;
95 case MUTABLE_HEAP_NUMBER_TYPE:
96 PrintF(out, "<mutable ");
97 HeapNumber::cast(this)->HeapNumberPrint(out);
98 PrintF(out, ">");
99 break;
95 case FIXED_DOUBLE_ARRAY_TYPE: 100 case FIXED_DOUBLE_ARRAY_TYPE:
96 FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(out); 101 FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(out);
97 break; 102 break;
98 case CONSTANT_POOL_ARRAY_TYPE: 103 case CONSTANT_POOL_ARRAY_TYPE:
99 ConstantPoolArray::cast(this)->ConstantPoolArrayPrint(out); 104 ConstantPoolArray::cast(this)->ConstantPoolArrayPrint(out);
100 break; 105 break;
101 case FIXED_ARRAY_TYPE: 106 case FIXED_ARRAY_TYPE:
102 FixedArray::cast(this)->FixedArrayPrint(out); 107 FixedArray::cast(this)->FixedArrayPrint(out);
103 break; 108 break;
104 case BYTE_ARRAY_TYPE: 109 case BYTE_ARRAY_TYPE:
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 } 1235 }
1231 } 1236 }
1232 PrintF(out, "\n"); 1237 PrintF(out, "\n");
1233 } 1238 }
1234 1239
1235 1240
1236 #endif // OBJECT_PRINT 1241 #endif // OBJECT_PRINT
1237 1242
1238 1243
1239 } } // namespace v8::internal 1244 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698