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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 Handle<HeapObject> stub_holder(GetCodeCacheHolder( | 838 Handle<HeapObject> stub_holder(GetCodeCacheHolder( |
839 isolate(), *object, cache_holder)); | 839 isolate(), *object, cache_holder)); |
840 | 840 |
841 Handle<Code> code = isolate()->stub_cache()->FindHandler( | 841 Handle<Code> code = isolate()->stub_cache()->FindHandler( |
842 name, handle(stub_holder->map()), kind(), cache_holder, | 842 name, handle(stub_holder->map()), kind(), cache_holder, |
843 lookup->IsNormal() ? Code::NORMAL : Code::FAST); | 843 lookup->IsNormal() ? Code::NORMAL : Code::FAST); |
844 if (!code.is_null()) { | 844 if (!code.is_null()) { |
845 #ifdef DEBUG | 845 #ifdef DEBUG |
846 Handle<Code> compiled = CompileHandler( | 846 Handle<Code> compiled = CompileHandler( |
847 lookup, object, name, value, cache_holder); | 847 lookup, object, name, value, cache_holder); |
848 ASSERT(compiled->major_key() == code->major_key()); | |
849 ASSERT(compiled->flags() == code->flags()); | 848 ASSERT(compiled->flags() == code->flags()); |
850 #endif | 849 #endif |
851 return code; | 850 return code; |
852 } | 851 } |
853 | 852 |
854 code = CompileHandler(lookup, object, name, value, cache_holder); | 853 code = CompileHandler(lookup, object, name, value, cache_holder); |
855 ASSERT(code->is_handler()); | 854 ASSERT(code->is_handler()); |
856 | 855 |
857 if (code->type() != Code::NORMAL) { | 856 if (code->type() != Code::NORMAL) { |
858 HeapObject::UpdateMapCodeCache(stub_holder, name, code); | 857 HeapObject::UpdateMapCodeCache(stub_holder, name, code); |
(...skipping 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2802 #undef ADDR | 2801 #undef ADDR |
2803 }; | 2802 }; |
2804 | 2803 |
2805 | 2804 |
2806 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2805 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
2807 return IC_utilities[id]; | 2806 return IC_utilities[id]; |
2808 } | 2807 } |
2809 | 2808 |
2810 | 2809 |
2811 } } // namespace v8::internal | 2810 } } // namespace v8::internal |
OLD | NEW |