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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 PROFILE(isolate(), | 672 PROFILE(isolate(), |
673 CodeCreateEvent(CALL_LOGGER_TAG(kind, CALL_IC_TAG), *code, *name)); | 673 CodeCreateEvent(CALL_LOGGER_TAG(kind, CALL_IC_TAG), *code, *name)); |
674 GDBJIT(AddCode(GDBJITInterface::CALL_IC, *name, *code)); | 674 GDBJIT(AddCode(GDBJITInterface::CALL_IC, *name, *code)); |
675 JSObject::UpdateMapCodeCache(map_holder, name, code); | 675 JSObject::UpdateMapCodeCache(map_holder, name, code); |
676 return code; | 676 return code; |
677 } | 677 } |
678 | 678 |
679 | 679 |
680 static void FillCache(Isolate* isolate, Handle<Code> code) { | 680 static void FillCache(Isolate* isolate, Handle<Code> code) { |
681 Handle<NumberDictionary> dictionary = | 681 Handle<NumberDictionary> dictionary = |
682 NumberDictionarySet(isolate->factory()->non_monomorphic_cache(), | 682 NumberDictionary::Set(isolate->factory()->non_monomorphic_cache(), |
683 code->flags(), | 683 code->flags(), |
684 code, | 684 code, |
685 PropertyDetails(NONE, NORMAL)); | 685 PropertyDetails(NONE, NORMAL)); |
686 isolate->heap()->public_set_non_monomorphic_cache(*dictionary); | 686 isolate->heap()->public_set_non_monomorphic_cache(*dictionary); |
687 } | 687 } |
688 | 688 |
689 | 689 |
690 Code* StubCache::FindCallInitialize(int argc, | 690 Code* StubCache::FindCallInitialize(int argc, |
691 RelocInfo::Mode mode, | 691 RelocInfo::Mode mode, |
692 Code::Kind kind) { | 692 Code::Kind kind) { |
693 Code::ExtraICState extra_state = | 693 Code::ExtraICState extra_state = |
694 CallICBase::StringStubState::encode(DEFAULT_STRING_STUB) | | 694 CallICBase::StringStubState::encode(DEFAULT_STRING_STUB) | |
695 CallICBase::Contextual::encode(mode == RelocInfo::CODE_TARGET_CONTEXT); | 695 CallICBase::Contextual::encode(mode == RelocInfo::CODE_TARGET_CONTEXT); |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1509 Handle<FunctionTemplateInfo>( | 1509 Handle<FunctionTemplateInfo>( |
1510 FunctionTemplateInfo::cast(signature->receiver())); | 1510 FunctionTemplateInfo::cast(signature->receiver())); |
1511 } | 1511 } |
1512 } | 1512 } |
1513 | 1513 |
1514 is_simple_api_call_ = true; | 1514 is_simple_api_call_ = true; |
1515 } | 1515 } |
1516 | 1516 |
1517 | 1517 |
1518 } } // namespace v8::internal | 1518 } } // namespace v8::internal |
OLD | NEW |