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);
345 // Generate code to check if an object is a string. If the object is a
369 // Generate code to load the length from a string object and return the length.
415 // Generate code to check that a global property cell is empty. Create
448 // Generate StoreTransition code, value is passed in a0 register.
449 // After executing generated code, the receiver_reg and name_reg
549 // TODO(verwaest): Share this code as a code stub.
611 // Generate StoreField code, value is passed in a0 register.
612 // When leaving generated code after success, the receiver_reg and name_reg
678 // TODO(verwaest): Share this code as a code stub.
750 Code::ExtraICState extra_ic_state) {
946 Code::ExtraICState extra_ic_state)
1062 // Deferred code for fast API call case---clean preallocated space.
1133 Code::ExtraICState extra_ic_state_;
1175 void StubCompiler::GenerateTailCall(MacroAssembler* masm, Handle<Code> code) {
1176 __ Jump(code, RelocInfo::CODE_TARGET);
1258 // in the code. Load it from the map.
1392 if (kind() == Code::LOAD_IC) {
1519 // Compile the interceptor call, followed by inline code to load the
1526 // result. The CALLBACKS case needs the receiver to be passed into C++ code,
1580 if (kind_ == Code::KEYED_CALL_IC) {
1634 Handle<Code> code =
1638 __ Jump(code, RelocInfo::CODE_TARGET);
1642 Handle<Code> CallStubCompiler::CompileCallField(Handle<JSObject> object,
1672 // Return the generated code.
1673 return GetCode(Code::FIELD, name);
1677 Handle<Code> CallStubCompiler::CompileArrayCodeCall(
1683 Code::StubType type) {
1720 // Return the generated code.
1725 Handle<Code> CallStubCompiler::CompileArrayPushCall(
1731 Code::StubType type) {
1741 if (!object->IsJSArray() || !cell.is_null()) return Handle<Code>::null();
1975 // Return the generated code.
1980 Handle<Code> CallStubCompiler::CompileArrayPopCall(
1986 Code::StubType type) {
1996 if (!object->IsJSArray() || !cell.is_null()) return Handle<Code>::null();
2058 // Return the generated code.
2063 Handle<Code> CallStubCompiler::CompileStringCharCodeAtCall(
2069 Code::StubType type) {
2079 if (!object->IsString() || !cell.is_null()) return Handle<Code>::null();
2088 if (kind_ == Code::CALL_IC &&
2141 // Return the generated code.
2146 Handle<Code> CallStubCompiler::CompileStringCharAtCall(
2152 Code::StubType type) {
2162 if (!object->IsString() || !cell.is_null()) return Handle<Code>::null();
2169 if (kind_ == Code::CALL_IC &&
2223 // Return the generated code.
2228 Handle<Code> CallStubCompiler::CompileStringFromCharCodeCall(
2234 Code::StubType type) {
2247 if (!object->IsJSObject() || argc != 1) return Handle<Code>::null();
2267 // Load the char code argument.
2268 Register code = a1;
2269 __ lw(code, MemOperand(sp, 0 * kPointerSize));
2271 // Check the code is a smi.
2274 __ JumpIfNotSmi(code, &slow);
2276 // Convert the smi code to uint16.
2277 __ And(code, code, Operand(Smi::FromInt(0xffff)));
2279 StringCharFromCodeGenerator generator(code, v0);
2297 // Return the generated code.
2302 Handle<Code> CallStubCompiler::CompileMathFloorCall(
2308 Code::StubType type) {
2321 if (!object->IsJSObject() || argc != 1) return Handle<Code>::null();
2427 // Return the generated code.
2432 Handle<Code> CallStubCompiler::CompileMathAbsCall(
2438 Code::StubType type) {
2450 if (!object->IsJSObject() || argc != 1) return Handle<Code>::null();
2527 // Return the generated code.
2532 Handle<Code> CallStubCompiler::CompileFastApiCall(
2545 if (object->IsGlobalObject()) return Handle<Code>::null();
2546 if (!cell.is_null()) return Handle<Code>::null();
2547 if (!object->IsJSObject()) return Handle<Code>::null();
2550 if (depth == kInvalidProtoDepth) return Handle<Code>::null();
2580 // Return the generated code.
2701 Handle<Code> CallStubCompiler::CompileCallConstant(
2708 Handle<Code> code = CompileCustomCall(object, holder,
2711 Code::CONSTANT);
2712 // A null handle means bail out to the regular compiler code below.
2713 if (!code.is_null()) return code;
2722 // Return the generated code.
2727 Handle<Code> CallStubCompiler::CompileCallInterceptor(Handle<JSObject> object,
2762 // Return the generated code.
2763 return GetCode(Code::INTERCEPTOR, name);
2767 Handle<Code> CallStubCompiler::CompileCallGlobal(
2779 Handle<Code> code = CompileCustomCall(
2781 Code::NORMAL);
2782 // A null handle means bail out to the regular compiler code below.
2783 if (!code.is_null()) return code;
2804 // Jump to the cached code (tail call).
2811 // We call indirectly through the code field in the function to
2823 // Return the generated code.
2824 return GetCode(Code::NORMAL, name);
2828 Handle<Code> StoreStubCompiler::CompileStoreCallback(
2852 // Return the generated code.
2853 return GetCode(kind(), Code::CALLBACKS, name);
2885 // If we generate a global code snippet for deoptimization only, remember
2904 Handle<Code> StoreStubCompiler::CompileStoreInterceptor(
2936 // Return the generated code.
2937 return GetCode(kind(), Code::INTERCEPTOR, name);
2941 Handle<Code> StoreStubCompiler::CompileStoreGlobal(
2976 // Return the generated code.
2977 return GetICCode(kind(), Code::NORMAL, name);
2981 Handle<Code> LoadStubCompiler::CompileLoadNonexistent(
2995 // Return the generated code.
2996 return GetCode(kind(), Code::NONEXISTENT, name);
3064 // If we generate a global code snippet for deoptimization only, remember
3080 Handle<Code> LoadStubCompiler::CompileLoadGlobal(
3111 // Return the generated code.
3112 return GetICCode(kind(), Code::NORMAL, name);
3116 Handle<Code> BaseLoadStoreStubCompiler::CompilePolymorphicIC(
3120 Code::StubType type,
3147 // Return the generated code.
3154 Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic(
3179 // Return the generated code.
3181 kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC);