| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 3396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3407 } | 3407 } |
| 3408 // If allocation fails then we just return without doing anything. It is only | 3408 // If allocation fails then we just return without doing anything. It is only |
| 3409 // a cache, so best effort is OK here. | 3409 // a cache, so best effort is OK here. |
| 3410 } | 3410 } |
| 3411 | 3411 |
| 3412 | 3412 |
| 3413 void Heap::FlushNumberStringCache() { | 3413 void Heap::FlushNumberStringCache() { |
| 3414 // Flush the number to string cache. | 3414 // Flush the number to string cache. |
| 3415 int len = number_string_cache()->length(); | 3415 int len = number_string_cache()->length(); |
| 3416 for (int i = 0; i < len; i++) { | 3416 for (int i = 0; i < len; i++) { |
| 3417 number_string_cache()->set_undefined(this, i); | 3417 number_string_cache()->set_undefined(i); |
| 3418 } | 3418 } |
| 3419 } | 3419 } |
| 3420 | 3420 |
| 3421 | 3421 |
| 3422 static inline int double_get_hash(double d) { | 3422 static inline int double_get_hash(double d) { |
| 3423 DoubleRepresentation rep(d); | 3423 DoubleRepresentation rep(d); |
| 3424 return static_cast<int>(rep.bits) ^ static_cast<int>(rep.bits >> 32); | 3424 return static_cast<int>(rep.bits) ^ static_cast<int>(rep.bits >> 32); |
| 3425 } | 3425 } |
| 3426 | 3426 |
| 3427 | 3427 |
| (...skipping 4623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8051 if (FLAG_concurrent_recompilation) { | 8051 if (FLAG_concurrent_recompilation) { |
| 8052 heap_->relocation_mutex_->Lock(); | 8052 heap_->relocation_mutex_->Lock(); |
| 8053 #ifdef DEBUG | 8053 #ifdef DEBUG |
| 8054 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 8054 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
| 8055 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 8055 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
| 8056 #endif // DEBUG | 8056 #endif // DEBUG |
| 8057 } | 8057 } |
| 8058 } | 8058 } |
| 8059 | 8059 |
| 8060 } } // namespace v8::internal | 8060 } } // namespace v8::internal |
| OLD | NEW |