| OLD | NEW | 
|     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  Loading... | 
|  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   } |  | 
|  4009  |  4000  | 
|  4010   // No match found. |  4001   // No match found. | 
|  4011   return NULL; |  4002   return NULL; | 
|  4012 } |  4003 } | 
|  4013  |  4004  | 
|  4014  |  4005  | 
|  4015 MaybeObject* Heap::AllocateInternalSymbol(unibrow::CharacterStream* buffer, |  4006 MaybeObject* Heap::AllocateInternalSymbol(unibrow::CharacterStream* buffer, | 
|  4016                                           int chars, |  4007                                           int chars, | 
|  4017                                           uint32_t hash_field) { |  4008                                           uint32_t hash_field) { | 
|  4018   ASSERT(chars >= 0); |  4009   ASSERT(chars >= 0); | 
| (...skipping 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  6467   isolate_->heap()->store_buffer()->Compact(); |  6458   isolate_->heap()->store_buffer()->Compact(); | 
|  6468   isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); |  6459   isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); | 
|  6469   for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { |  6460   for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { | 
|  6470     next = chunk->next_chunk(); |  6461     next = chunk->next_chunk(); | 
|  6471     isolate_->memory_allocator()->Free(chunk); |  6462     isolate_->memory_allocator()->Free(chunk); | 
|  6472   } |  6463   } | 
|  6473   chunks_queued_for_free_ = NULL; |  6464   chunks_queued_for_free_ = NULL; | 
|  6474 } |  6465 } | 
|  6475  |  6466  | 
|  6476 } }  // namespace v8::internal |  6467 } }  // namespace v8::internal | 
| OLD | NEW |