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

Side by Side Diff: src/heap.cc

Issue 8677006: Recommit introducing short external strings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixing webkit failures. Created 9 years, 1 month 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 3979 matching lines...) Expand 10 before | Expand all | Expand 10 after
3990 } 3990 }
3991 if (map == external_string_map()) { 3991 if (map == external_string_map()) {
3992 return external_symbol_map(); 3992 return external_symbol_map();
3993 } 3993 }
3994 if (map == external_ascii_string_map()) { 3994 if (map == external_ascii_string_map()) {
3995 return external_ascii_symbol_map(); 3995 return external_ascii_symbol_map();
3996 } 3996 }
3997 if (map == external_string_with_ascii_data_map()) { 3997 if (map == external_string_with_ascii_data_map()) {
3998 return external_symbol_with_ascii_data_map(); 3998 return external_symbol_with_ascii_data_map();
3999 } 3999 }
4000 if (map == short_external_string_map()) {
4001 return short_external_symbol_map();
4002 }
4003 if (map == short_external_ascii_string_map()) {
4004 return short_external_ascii_symbol_map();
4005 }
4006 if (map == short_external_string_with_ascii_data_map()) {
4007 return short_external_symbol_with_ascii_data_map();
4008 }
4000 4009
4001 // No match found. 4010 // No match found.
4002 return NULL; 4011 return NULL;
4003 } 4012 }
4004 4013
4005 4014
4006 MaybeObject* Heap::AllocateInternalSymbol(unibrow::CharacterStream* buffer, 4015 MaybeObject* Heap::AllocateInternalSymbol(unibrow::CharacterStream* buffer,
4007 int chars, 4016 int chars,
4008 uint32_t hash_field) { 4017 uint32_t hash_field) {
4009 ASSERT(chars >= 0); 4018 ASSERT(chars >= 0);
(...skipping 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after
6458 isolate_->heap()->store_buffer()->Compact(); 6467 isolate_->heap()->store_buffer()->Compact();
6459 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 6468 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
6460 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 6469 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
6461 next = chunk->next_chunk(); 6470 next = chunk->next_chunk();
6462 isolate_->memory_allocator()->Free(chunk); 6471 isolate_->memory_allocator()->Free(chunk);
6463 } 6472 }
6464 chunks_queued_for_free_ = NULL; 6473 chunks_queued_for_free_ = NULL;
6465 } 6474 }
6466 6475
6467 } } // namespace v8::internal 6476 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/heap-inl.h » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698