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

Side by Side Diff: src/mark-compact.cc

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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 table_.Register(kVisitShortcutCandidate, 383 table_.Register(kVisitShortcutCandidate,
384 &FixedBodyVisitor<StaticMarkingVisitor, 384 &FixedBodyVisitor<StaticMarkingVisitor,
385 ConsString::BodyDescriptor, 385 ConsString::BodyDescriptor,
386 void>::Visit); 386 void>::Visit);
387 387
388 table_.Register(kVisitConsString, 388 table_.Register(kVisitConsString,
389 &FixedBodyVisitor<StaticMarkingVisitor, 389 &FixedBodyVisitor<StaticMarkingVisitor,
390 ConsString::BodyDescriptor, 390 ConsString::BodyDescriptor,
391 void>::Visit); 391 void>::Visit);
392 392
393 table_.Register(kVisitSlicedString,
394 &FixedBodyVisitor<StaticMarkingVisitor,
395 SlicedString::BodyDescriptor,
396 void>::Visit);
393 397
394 table_.Register(kVisitFixedArray, 398 table_.Register(kVisitFixedArray,
395 &FlexibleBodyVisitor<StaticMarkingVisitor, 399 &FlexibleBodyVisitor<StaticMarkingVisitor,
396 FixedArray::BodyDescriptor, 400 FixedArray::BodyDescriptor,
397 void>::Visit); 401 void>::Visit);
398 402
399 table_.Register(kVisitFixedDoubleArray, DataObjectVisitor::Visit); 403 table_.Register(kVisitFixedDoubleArray, DataObjectVisitor::Visit);
400 404
401 table_.Register(kVisitGlobalContext, 405 table_.Register(kVisitGlobalContext,
402 &FixedBodyVisitor<StaticMarkingVisitor, 406 &FixedBodyVisitor<StaticMarkingVisitor,
(...skipping 2868 matching lines...) Expand 10 before | Expand all | Expand 10 after
3271 } 3275 }
3272 3276
3273 3277
3274 void MarkCompactCollector::Initialize() { 3278 void MarkCompactCollector::Initialize() {
3275 StaticPointersToNewGenUpdatingVisitor::Initialize(); 3279 StaticPointersToNewGenUpdatingVisitor::Initialize();
3276 StaticMarkingVisitor::Initialize(); 3280 StaticMarkingVisitor::Initialize();
3277 } 3281 }
3278 3282
3279 3283
3280 } } // namespace v8::internal 3284 } } // namespace v8::internal
OLDNEW
« src/ia32/code-stubs-ia32.cc ('K') | « src/jsregexp.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698