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

Side by Side Diff: src/heap.cc

Issue 6460038: Version 3.1.3.... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 10 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/handles.cc ('k') | src/hydrogen.cc » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 4110 matching lines...) Expand 10 before | Expand all | Expand 10 after
4121 if (string->IsSymbol()) { 4121 if (string->IsSymbol()) {
4122 *symbol = string; 4122 *symbol = string;
4123 return true; 4123 return true;
4124 } 4124 }
4125 return symbol_table()->LookupSymbolIfExists(string, symbol); 4125 return symbol_table()->LookupSymbolIfExists(string, symbol);
4126 } 4126 }
4127 4127
4128 4128
4129 #ifdef DEBUG 4129 #ifdef DEBUG
4130 void Heap::ZapFromSpace() { 4130 void Heap::ZapFromSpace() {
4131 ASSERT(reinterpret_cast<Object*>(kFromSpaceZapValue)->IsHeapObject()); 4131 ASSERT(reinterpret_cast<Object*>(kFromSpaceZapValue)->IsFailure());
4132 for (Address a = new_space_.FromSpaceLow(); 4132 for (Address a = new_space_.FromSpaceLow();
4133 a < new_space_.FromSpaceHigh(); 4133 a < new_space_.FromSpaceHigh();
4134 a += kPointerSize) { 4134 a += kPointerSize) {
4135 Memory::Address_at(a) = kFromSpaceZapValue; 4135 Memory::Address_at(a) = kFromSpaceZapValue;
4136 } 4136 }
4137 } 4137 }
4138 #endif // DEBUG 4138 #endif // DEBUG
4139 4139
4140 4140
4141 bool Heap::IteratePointersInDirtyRegion(Address start, 4141 bool Heap::IteratePointersInDirtyRegion(Address start,
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after
5588 void ExternalStringTable::TearDown() { 5588 void ExternalStringTable::TearDown() {
5589 new_space_strings_.Free(); 5589 new_space_strings_.Free();
5590 old_space_strings_.Free(); 5590 old_space_strings_.Free();
5591 } 5591 }
5592 5592
5593 5593
5594 List<Object*> ExternalStringTable::new_space_strings_; 5594 List<Object*> ExternalStringTable::new_space_strings_;
5595 List<Object*> ExternalStringTable::old_space_strings_; 5595 List<Object*> ExternalStringTable::old_space_strings_;
5596 5596
5597 } } // namespace v8::internal 5597 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698