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

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, 9 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:
Igor Sheludko 2014/03/27 11:30:16 I think you can join this case with HEAP_NUMBER_TY
96 HeapNumber::cast(this)->HeapNumberPrint(out);
97 break;
95 case FIXED_DOUBLE_ARRAY_TYPE: 98 case FIXED_DOUBLE_ARRAY_TYPE:
96 FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(out); 99 FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(out);
97 break; 100 break;
98 case CONSTANT_POOL_ARRAY_TYPE: 101 case CONSTANT_POOL_ARRAY_TYPE:
99 ConstantPoolArray::cast(this)->ConstantPoolArrayPrint(out); 102 ConstantPoolArray::cast(this)->ConstantPoolArrayPrint(out);
100 break; 103 break;
101 case FIXED_ARRAY_TYPE: 104 case FIXED_ARRAY_TYPE:
102 FixedArray::cast(this)->FixedArrayPrint(out); 105 FixedArray::cast(this)->FixedArrayPrint(out);
103 break; 106 break;
104 case BYTE_ARRAY_TYPE: 107 case BYTE_ARRAY_TYPE:
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 } 1233 }
1231 } 1234 }
1232 PrintF(out, "\n"); 1235 PrintF(out, "\n");
1233 } 1236 }
1234 1237
1235 1238
1236 #endif // OBJECT_PRINT 1239 #endif // OBJECT_PRINT
1237 1240
1238 1241
1239 } } // namespace v8::internal 1242 } } // namespace v8::internal
OLDNEW
« src/objects-inl.h ('K') | « src/objects-inl.h ('k') | src/objects-visiting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698