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

Side by Side Diff: src/objects-visiting.h

Issue 7477045: Tentative implementation of string slices (hidden under the flag --string-slices). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some more suggested changes. Created 9 years, 4 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 kVisitStruct3, 108 kVisitStruct3,
109 kVisitStruct4, 109 kVisitStruct4,
110 kVisitStruct5, 110 kVisitStruct5,
111 kVisitStruct6, 111 kVisitStruct6,
112 kVisitStruct7, 112 kVisitStruct7,
113 kVisitStruct8, 113 kVisitStruct8,
114 kVisitStruct9, 114 kVisitStruct9,
115 kVisitStructGeneric, 115 kVisitStructGeneric,
116 116
117 kVisitConsString, 117 kVisitConsString,
118 kVisitSlicedString,
118 kVisitOddball, 119 kVisitOddball,
119 kVisitCode, 120 kVisitCode,
120 kVisitMap, 121 kVisitMap,
121 kVisitPropertyCell, 122 kVisitPropertyCell,
122 kVisitSharedFunctionInfo, 123 kVisitSharedFunctionInfo,
123 kVisitJSFunction, 124 kVisitJSFunction,
124 kVisitJSRegExp, 125 kVisitJSRegExp,
125 126
126 kVisitorIdCount, 127 kVisitorIdCount,
127 kMinObjectSizeInWords = 2 128 kMinObjectSizeInWords = 2
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 table_.Register(kVisitShortcutCandidate, 292 table_.Register(kVisitShortcutCandidate,
292 &FixedBodyVisitor<StaticVisitor, 293 &FixedBodyVisitor<StaticVisitor,
293 ConsString::BodyDescriptor, 294 ConsString::BodyDescriptor,
294 int>::Visit); 295 int>::Visit);
295 296
296 table_.Register(kVisitConsString, 297 table_.Register(kVisitConsString,
297 &FixedBodyVisitor<StaticVisitor, 298 &FixedBodyVisitor<StaticVisitor,
298 ConsString::BodyDescriptor, 299 ConsString::BodyDescriptor,
299 int>::Visit); 300 int>::Visit);
300 301
302 table_.Register(kVisitSlicedString,
303 &FixedBodyVisitor<StaticVisitor,
304 SlicedString::BodyDescriptor,
305 int>::Visit);
306
301 table_.Register(kVisitFixedArray, 307 table_.Register(kVisitFixedArray,
302 &FlexibleBodyVisitor<StaticVisitor, 308 &FlexibleBodyVisitor<StaticVisitor,
303 FixedArray::BodyDescriptor, 309 FixedArray::BodyDescriptor,
304 int>::Visit); 310 int>::Visit);
305 311
306 table_.Register(kVisitFixedDoubleArray, &VisitFixedDoubleArray); 312 table_.Register(kVisitFixedDoubleArray, &VisitFixedDoubleArray);
307 313
308 table_.Register(kVisitGlobalContext, 314 table_.Register(kVisitGlobalContext,
309 &FixedBodyVisitor<StaticVisitor, 315 &FixedBodyVisitor<StaticVisitor,
310 Context::ScavengeBodyDescriptor, 316 Context::ScavengeBodyDescriptor,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 452
447 for (; !it.done(); it.next()) { 453 for (; !it.done(); it.next()) {
448 it.rinfo()->template Visit<StaticVisitor>(heap); 454 it.rinfo()->template Visit<StaticVisitor>(heap);
449 } 455 }
450 } 456 }
451 457
452 458
453 } } // namespace v8::internal 459 } } // namespace v8::internal
454 460
455 #endif // V8_OBJECTS_VISITING_H_ 461 #endif // V8_OBJECTS_VISITING_H_
OLDNEW
« src/ia32/code-stubs-ia32.cc ('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