| 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 11642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11653 cache->ElementAdded(); | 11653 cache->ElementAdded(); |
| 11654 return cache; | 11654 return cache; |
| 11655 } | 11655 } |
| 11656 | 11656 |
| 11657 | 11657 |
| 11658 MaybeObject* CompilationCacheTable::PutEval(String* src, | 11658 MaybeObject* CompilationCacheTable::PutEval(String* src, |
| 11659 Context* context, | 11659 Context* context, |
| 11660 SharedFunctionInfo* value) { | 11660 SharedFunctionInfo* value) { |
| 11661 StringSharedKey key(src, | 11661 StringSharedKey key(src, |
| 11662 context->closure()->shared(), | 11662 context->closure()->shared(), |
| 11663 value->strict_mode() ? kStrictMode : kNonStrictMode); | 11663 value->strict_mode_flag()); |
| 11664 Object* obj; | 11664 Object* obj; |
| 11665 { MaybeObject* maybe_obj = EnsureCapacity(1, &key); | 11665 { MaybeObject* maybe_obj = EnsureCapacity(1, &key); |
| 11666 if (!maybe_obj->ToObject(&obj)) return maybe_obj; | 11666 if (!maybe_obj->ToObject(&obj)) return maybe_obj; |
| 11667 } | 11667 } |
| 11668 | 11668 |
| 11669 CompilationCacheTable* cache = | 11669 CompilationCacheTable* cache = |
| 11670 reinterpret_cast<CompilationCacheTable*>(obj); | 11670 reinterpret_cast<CompilationCacheTable*>(obj); |
| 11671 int entry = cache->FindInsertionEntry(key.Hash()); | 11671 int entry = cache->FindInsertionEntry(key.Hash()); |
| 11672 | 11672 |
| 11673 Object* k; | 11673 Object* k; |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12582 if (break_point_objects()->IsUndefined()) return 0; | 12582 if (break_point_objects()->IsUndefined()) return 0; |
| 12583 // Single break point. | 12583 // Single break point. |
| 12584 if (!break_point_objects()->IsFixedArray()) return 1; | 12584 if (!break_point_objects()->IsFixedArray()) return 1; |
| 12585 // Multiple break points. | 12585 // Multiple break points. |
| 12586 return FixedArray::cast(break_point_objects())->length(); | 12586 return FixedArray::cast(break_point_objects())->length(); |
| 12587 } | 12587 } |
| 12588 #endif // ENABLE_DEBUGGER_SUPPORT | 12588 #endif // ENABLE_DEBUGGER_SUPPORT |
| 12589 | 12589 |
| 12590 | 12590 |
| 12591 } } // namespace v8::internal | 12591 } } // namespace v8::internal |
| OLD | NEW |