Home | History | Annotate | Download | only in mips

Lines Matching refs:Code

6 //     * Redistributions of source code must retain the above copyright
44 Code::Flags flags,
73 // Multiply by 3 because there are 3 fields per entry (name, code, map).
91 // Get the code entry from the cache.
92 Register code = scratch2;
94 __ lw(code, MemOperand(base_addr, value_off_addr - key_off_addr));
99 __ lw(flags_reg, FieldMemOperand(code, Code::kFlagsOffset));
100 __ And(flags_reg, flags_reg, Operand(~Code::kFlagsNotUsedInLookup));
111 // Jump to the first instruction in the code stub.
112 __ Addu(at, code, Operand(Code::kHeaderSize - kHeapObjectTag));
178 Code::Flags flags,
188 // Make sure that code is valid. The multiplying code relies on the
193 ASSERT(Code::ExtractTypeFromFlags(flags) == 0);
348 // Generate code to check if an object is a string. If the object is a
372 // Generate code to load the length from a string object and return the length.
418 // Generate StoreField code, value is passed in a0 register.
419 // After executing generated code, the receiver_reg and name_reg
517 void StubCompiler::GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind) {
518 ASSERT(kind == Code::LOAD_IC || kind == Code::KEYED_LOAD_IC);
519 Handle<Code> code = (kind == Code::LOAD_IC)
522 __ Jump(code, RelocInfo::CODE_TARGET);
530 Code::ExtraICState extra_ic_state) {
688 Code::ExtraICState extra_ic_state)
802 // Deferred code for fast API call case---clean preallocated space.
873 Code::ExtraICState extra_ic_state_;
878 // Generate code to check that a global property cell is empty. Create
1101 // in the code. Load it from the map.
1270 // Compile the interceptor call, followed by inline code to load the
1341 // Important invariant in CALLBACKS case: the code above must be
1380 if (kind_ == Code::KEYED_CALL_IC) {
1434 Handle<Code> code =
1438 __ Jump(code, RelocInfo::CODE_TARGET);
1442 Handle<Code> CallStubCompiler::CompileCallField(Handle<JSObject> object,
1471 // Return the generated code.
1476 Handle<Code> CallStubCompiler::CompileArrayPushCall(
1491 if (!object->IsJSArray() || !cell.is_null()) return Handle<Code>::null();
1681 // Return the generated code.
1686 Handle<Code> CallStubCompiler::CompileArrayPopCall(
1701 if (!object->IsJSArray() || !cell.is_null()) return Handle<Code>::null();
1767 // Return the generated code.
1772 Handle<Code> CallStubCompiler::CompileStringCharCodeAtCall(
1787 if (!object->IsString() || !cell.is_null()) return Handle<Code>::null();
1796 if (kind_ == Code::CALL_IC &&
1850 // Return the generated code.
1855 Handle<Code> CallStubCompiler::CompileStringCharAtCall(
1870 if (!object->IsString() || !cell.is_null()) return Handle<Code>::null();
1877 if (kind_ == Code::CALL_IC &&
1932 // Return the generated code.
1937 Handle<Code> CallStubCompiler::CompileStringFromCharCodeCall(
1955 if (!object->IsJSObject() || argc != 1) return Handle<Code>::null();
1975 // Load the char code argument.
1976 Register code = a1;
1977 __ lw(code, MemOperand(sp, 0 * kPointerSize));
1979 // Check the code is a smi.
1982 __ JumpIfNotSmi(code, &slow);
1984 // Convert the smi code to uint16.
1985 __ And(code, code, Operand(Smi::FromInt(0xffff)));
1987 StringCharFromCodeGenerator generator(code, v0);
2005 // Return the generated code.
2010 Handle<Code> CallStubCompiler::CompileMathFloorCall(
2025 return Handle<Code>::null();
2032 if (!object->IsJSObject() || argc != 1) return Handle<Code>::null();
2139 // Return the generated code.
2144 Handle<Code> CallStubCompiler::CompileMathAbsCall(
2161 if (!object->IsJSObject() || argc != 1) return Handle<Code>::null();
2240 // Return the generated code.
2245 Handle<Code> CallStubCompiler::CompileFastApiCall(
2258 if (object->IsGlobalObject()) return Handle<Code>::null();
2259 if (!cell.is_null()) return Handle<Code>::null();
2260 if (!object->IsJSObject()) return Handle<Code>::null();
2263 if (depth == kInvalidProtoDepth) return Handle<Code>::null();
2293 // Return the generated code.
2298 Handle<Code> CallStubCompiler::CompileCallConstant(Handle<Object> object,
2308 Handle<Code> code = CompileCustomCall(object, holder,
2311 // A null handle means bail out to the regular compiler code below.
2312 if (!code.is_null()) return code;
2421 // Return the generated code.
2426 Handle<Code> CallStubCompiler::CompileCallInterceptor(Handle<JSObject> object,
2461 // Return the generated code.
2466 Handle<Code> CallStubCompiler::CompileCallGlobal(
2478 Handle<Code> code = CompileCustomCall(object, holder, cell, function, name);
2479 // A null handle means bail out to the regular compiler code below.
2480 if (!code.is_null()) return code;
2501 // Jump to the cached code (tail call).
2508 // We call indirectly through the code field in the function to
2520 // Return the generated code.
2525 Handle<Code> StoreStubCompiler::CompileStoreField(Handle<JSObject> object,
2541 Handle<Code> ic = masm()->isolate()->builtins()->Builtins::StoreIC_Miss();
2544 // Return the generated code.
2549 Handle<Code> StoreStubCompiler::CompileStoreCallback(
2586 Handle<Code> ic = masm()->isolate()->builtins()->StoreIC_Miss();
2589 // Return the generated code.
2594 Handle<Code> StoreStubCompiler::CompileStoreInterceptor(
2631 Handle<Code> ic = masm()->isolate()->builtins()->Builtins::StoreIC_Miss();
2634 // Return the generated code.
2639 Handle<Code> StoreStubCompiler::CompileStoreGlobal(
2676 Handle<Code> ic = masm()->isolate()->builtins()->StoreIC_Miss();
2679 // Return the generated code.
2684 Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<String> name,
2711 GenerateLoadMiss(masm(), Code::LOAD_IC);
2713 // Return the generated code.
2718 Handle<Code> LoadStubCompiler::CompileLoadField(Handle<JSObject> object,
2733 GenerateLoadMiss(masm(), Code::LOAD_IC);
2735 // Return the generated code.
2740 Handle<Code> LoadStubCompiler::CompileLoadCallback(
2754 GenerateLoadMiss(masm(), Code::LOAD_IC);
2756 // Return the generated code.
2761 Handle<Code> LoadStubCompiler::CompileLoadConstant(Handle<JSObject> object,
2774 GenerateLoadMiss(masm(), Code::LOAD_IC);
2776 // Return the generated code.
2781 Handle<Code> LoadStubCompiler::CompileLoadInterceptor(Handle<JSObject> object,
2797 GenerateLoadMiss(masm(), Code::LOAD_IC);
2799 // Return the generated code.
2804 Handle<Code> LoadStubCompiler::CompileLoadGlobal(
2838 GenerateLoadMiss(masm(), Code::LOAD_IC);
2840 // Return the generated code.
2845 Handle<Code> KeyedLoadStubCompiler::CompileLoadField(Handle<String> name,
2861 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2867 Handle<Code> KeyedLoadStubCompiler::CompileLoadCallback(
2885 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2891 Handle<Code> KeyedLoadStubCompiler::CompileLoadConstant(
2908 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2910 // Return the generated code.
2915 Handle<Code> KeyedLoadStubCompiler::CompileLoadInterceptor(
2934 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2940 Handle<Code> KeyedLoadStubCompiler::CompileLoadArrayLength(
2954 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2960 Handle<Code> KeyedLoadStubCompiler::CompileLoadStringLength(
2979 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2985 Handle<Code> KeyedLoadStubCompiler::CompileLoadFunctionPrototype(
3003 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3009 Handle<Code> KeyedLoadStubCompiler::CompileLoadElement(
3017 Handle<Code> stub = KeyedLoadElementStub(elements_kind).GetCode();
3021 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Miss();
3024 // Return the generated code.
3029 Handle<Code> KeyedLoadStubCompiler::CompileLoadPolymorphic(
3048 Handle<Code> miss_ic = isolate()->builtins()->KeyedLoadIC_Miss();
3051 // Return the generated code.
3056 Handle<Code> KeyedStoreStubCompiler::CompileStoreField(Handle<JSObject> object,
3081 Handle<Code> ic = masm()->isolate()->builtins()->KeyedStoreIC_Miss();
3084 // Return the generated code.
3089 Handle<Code> KeyedStoreStubCompiler::CompileStoreElement(
3100 Handle<Code> stub =
3105 Handle<Code> ic = isolate()->builtins()->KeyedStoreIC_Miss();
3108 // Return the generated code.
3113 Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic(
3143 Handle<Code> miss_ic = isolate()->builtins()->KeyedStoreIC_Miss();
3146 // Return the generated code.
3151 Handle<Code> ConstructStubCompiler::CompileConstructStub(
3163 // Check to see whether there are any break points in the function code. If
3165 // code for the function thereby hitting the break points.
3284 // Jump to the generic stub in case the specialized code cannot handle the
3287 Handle<Code> generic_construct_stub =
3291 // Return the generated code.
3329 Handle<Code> slow_ic =
3342 Handle<Code> miss_ic =
3703 Handle<Code> stub =
4080 Handle<Code> slow_ic =
4093 Handle<Code> miss_ic =
4134 Handle<Code> stub =
4198 Handle<Code> slow_ic =
4203 Handle<Code> miss_ic =
4297 Handle<Code> ic =
4302 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
4367 Handle<Code> ic_slow = masm->isolate()->builtins()->KeyedStoreIC_Slow();
4440 Handle<Code> ic =
4445 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
4511 Handle<Code> ic_slow = masm->isolate()->builtins()->KeyedStoreIC_Slow();