Home | History | Annotate | Download | only in src

Lines Matching refs:stub

37 #include "stub-cache.h"
99 PrintF("[%s patching generic stub in ", type); \
199 // The stub was generated for JSObject but called for non-JSObject.
536 // Lookup is valid: Update inline cache and stub cache.
642 // Get the constant function and compute the code stub for this
644 // that the code stub is in the stub cache.
662 // There is only one shared stub for calling normalized
664 // property must be found in the receiver for the stub to be
704 // Set the target to the pre monomorphic stub to delay
729 // If there's no appropriate stub we simply avoid updating the caches.
740 // GenerateMonomorphicCacheProbe. It is not the map which holds the stub.
744 // Update the stub cache.
818 Handle<Code> stub;
820 stub = pre_monomorphic_stub();
822 stub = object->IsString()
826 stub = isolate()->builtins()->LoadIC_StringWrapperLength();
828 stub = megamorphic_stub();
830 if (!stub.is_null()) {
831 set_target(*stub);
846 Handle<Code> stub;
848 stub = pre_monomorphic_stub();
850 stub = isolate()->builtins()->LoadIC_ArrayLength();
852 stub = megamorphic_stub();
854 if (!stub.is_null()) {
855 set_target(*stub);
867 Handle<Code> stub;
869 stub = pre_monomorphic_stub();
871 stub = isolate()->builtins()->LoadIC_FunctionPrototype();
873 stub = megamorphic_stub();
875 if (!stub.is_null()) {
876 set_target(*stub);
902 // Update inline cache and stub cache.
941 // Compute the code stub for this load.
945 // Set the target to the pre monomorphic stub to delay
952 // Compute monomorphic stub.
972 // There is only one shared stub for loading normalized
974 // property must be found in the receiver for the stub to be
1007 // Place the current monomorphic stub and stub compiled for
1008 // the receiver into stub cache.
1079 // TODO(1073): don't ignore the current stub state.
1124 // Rewrite to the generic keyed load stub.
1164 Handle<Code> stub = generic_stub();
1168 stub = string_stub();
1174 stub = non_strict_arguments_stub();
1176 stub = indexed_interceptor_stub();
1178 stub = ComputeStub(receiver, LOAD, kNonStrictMode, stub);
1184 if (!stub.is_null()) set_target(*stub);
1206 // Compute the code stub for this load.
1211 // Set the target to the pre monomorphic stub to delay
1215 // Compute a monomorphic stub.
1345 Handle<Code> stub = (strict_mode == kStrictMode)
1348 set_target(*stub);
1357 // Generate a stub for this store.
1374 // Generate a generic stub that goes to the runtime when we see a global
1376 Handle<Code> stub = (strict_mode == kStrictMode)
1379 if (target() != *stub) {
1380 set_target(*stub);
1408 // Compute the code stub for this store; used for rewriting to
1409 // monomorphic state and making sure that the code stub is in the
1410 // stub cache.
1430 // The stub generated for the global object picks the value directly
1478 // Update the stub cache.
1500 void KeyedIC::GetReceiverMapsForStub(Handle<Code> stub,
1502 ASSERT(stub->is_inline_cache_stub());
1503 if (!string_stub().is_null() && stub.is_identical_to(string_stub())) {
1505 } else if (stub->is_keyed_load_stub() || stub->is_keyed_store_stub()) {
1506 if (stub->ic_state() == MONOMORPHIC) {
1507 result->Add(Handle<Map>(stub->FindFirstMap()));
1509 ASSERT(stub->ic_state() == MEGAMORPHIC);
1512 for (RelocIterator it(*stub, mask); !it.done(); it.next()) {
1580 // If the miss wasn't due to an unseen map, a polymorphic stub
1581 // won't help, use the generic stub.
1606 Handle<Code> stub =
1608 PolymorphicCodeCache::Update(cache, &target_receiver_maps, flags, stub);
1609 return stub;
1726 // Handle growing array in stub if necessary.
1792 // Update inline cache and stub cache.
1810 Handle<Code> stub = (strict_mode == kStrictMode)
1817 stub = non_strict_arguments_stub();
1821 stub = ComputeStub(receiver, stub_kind, strict_mode, stub);
1827 if (!stub.is_null()) set_target(*stub);
1856 // Compute the code stub for this store; used for rewriting to
1857 // monomorphic state and making sure that the code stub is in the
1858 // stub cache.
1915 // Static IC stub generators.
1936 // and we do the compilation immediately, instead of waiting for the stub
2289 UnaryOpStub stub(op, mode, type);
2290 Handle<Code> code = stub.GetCode();
2351 // That is the only way to get here from the Smi stub.
2365 BinaryOpStub stub(key, type, result_type);
2366 Handle<Code> code = stub.GetCode();
2442 ICCompareStub stub(op, UNINITIALIZED);
2443 return stub.GetCode();
2482 // HEAP_NUMBER stub will do the right thing.
2546 ToBooleanStub stub(tos, new_types);
2547 Handle<Code> code = stub.GetCode();