Lines Matching defs:code
6 // * Redistributions of source code must retain the above copyright
44 Code::Flags flags,
55 // Get the code entry from the cache.
63 __ mov(offset, FieldOperand(extra, Code::kFlagsOffset));
64 __ and_(offset, ~Code::kFlagsNotUsedInLookup);
68 // Jump to the first instruction in the code stub.
69 __ add(Operand(extra), Immediate(Code::kHeaderSize - kHeapObjectTag));
81 // Get the code entry from the cache.
85 __ mov(offset, FieldOperand(offset, Code::kFlagsOffset));
86 __ and_(offset, ~Code::kFlagsNotUsedInLookup);
90 // Restore offset and re-load code entry from cache.
94 // Jump to the first instruction in the code stub.
95 __ add(Operand(offset), Immediate(Code::kHeaderSize - kHeapObjectTag));
207 Code::Flags flags,
217 // Make sure that code is valid. The shifting code relies on the
222 ASSERT(Code::ExtractTypeFromFlags(flags) == 0);
310 // Generate code to check if an object is a string. If the object is
523 // Emitting a stub call may try to allocate (if the code is not
668 // Deferred code for fast API call case---clean preallocated space.
747 void StubCompiler::GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind) {
748 ASSERT(kind == Code::LOAD_IC || kind == Code::KEYED_LOAD_IC);
749 Code* code = NULL;
750 if (kind == Code::LOAD_IC) {
751 code = masm->isolate()->builtins()->builtin(Builtins::kLoadIC_Miss);
753 code = masm->isolate()->builtins()->builtin(Builtins::kKeyedLoadIC_Miss);
756 Handle<Code> ic(code);
845 // Generate code
980 // to it in the code. Load it from the map.
1123 // Emitting a stub call may try to allocate (if the code is not
1186 // Compile the interceptor call, followed by inline code to load the
1260 code above must be
1296 if (kind_ == Code::KEYED_CALL_IC) {
1368 __ jmp(Handle<Code>(Code::cast(obj)), RelocInfo::CODE_TARGET);
1424 // Return the generated code.
1577 // Return the generated code.
1661 // Return the generated code.
1692 if (kind_ == Code::CALL_IC && extra_ic_state_ == DEFAULT_STRING_STUB) {
1745 // Return the generated code.
1776 if (kind_ == Code::CALL_IC && extra_ic_state_ == DEFAULT_STRING_STUB) {
1831 // Return the generated code.
1876 // Load the char code argument.
1877 Register code = ebx;
1878 __ mov(code, Operand(esp, 1 * kPointerSize));
1880 // Check the code is a smi.
1883 __ test(code, Immediate(kSmiTagMask));
1886 // Convert the smi code to uint16.
1887 __ and_(code, Immediate(Smi::FromInt(0xffff)));
1889 StringCharFromCodeGenerator char_from_code_generator(code, eax);
1906 // Return the generated code.
2036 // Return the generated code.
2141 // Return the generated code.
2202 // Return the generated code.
2336 // Return the generated code.
2402 // Return the generated code.
2449 // Jump to the cached code (tail call).
2456 // code field in the function to allow recompilation to take effect
2461 Handle<Code> code(function->code());
2462 __ InvokeCode(code, expected, arguments(),
2472 // Return the generated code.
2489 // Generate store field code. Trashes the name register.
2500 Handle<Code> ic = isolate()->builtins()->StoreIC_Miss();
2503 // Return the generated code.
2551 Handle<Code> ic = isolate()->builtins()->StoreIC_Miss();
2554 // Return the generated code.
2601 Handle<Code> ic = isolate()->builtins()->StoreIC_Miss();
2604 // Return the generated code.
2651 Handle<Code> ic = isolate()->builtins()->StoreIC_Miss();
2654 // Return the generated code.
2678 // Generate store field code. Trashes the name register.
2689 Handle<Code> ic = isolate()->builtins()->KeyedStoreIC_Miss();
2692 // Return the generated code.
2746 Handle<Code> ic = isolate()->builtins()->KeyedStoreIC_Miss();
2749 // Return the generated code.
2795 GenerateLoadMiss(masm(), Code::LOAD_IC);
2797 // Return the generated code.
2815 GenerateLoadMiss(masm(), Code::LOAD_IC);
2817 // Return the generated code.
2841 GenerateLoadMiss(masm(), Code::LOAD_IC);
2843 // Return the generated code.
2861 GenerateLoadMiss(masm(), Code::LOAD_IC);
2863 // Return the generated code.
2895 GenerateLoadMiss(masm(), Code::LOAD_IC);
2897 // Return the generated code.
2949 GenerateLoadMiss(masm(), Code::LOAD_IC);
2951 // Return the generated code.
2978 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2980 // Return the generated code.
3014 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3016 // Return the generated code.
3043 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3045 // Return the generated code.
3081 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3083 // Return the generated code.
3106 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3108 // Return the generated code.
3131 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3133 // Return the generated code.
3156 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3158 // Return the generated code.
3201 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3203 // Return the generated code.
3219 // Check to see whether there are any break points in the function code. If
3221 // code for the function thereby hitting the break points.
3335 // Jump to the generic stub in case the specialized code cannot handle the
3338 Handle<Code> generic_construct_stub =
3342 // Return the generated code.
3348 JSObject*receiver, ExternalArrayType array_type, Code::Flags flags) {
3495 // Return the generated code.
3501 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags) {
3611 // processors that don't support SSE2. The code in IntegerConvert
3612 // (code-stubs-ia32.cc) is roughly what is needed here though the
3662 // range [0, 2^31-1]. For the time being, to keep this code simple,
3697 Code::ExtractExtraICStateFromFlags(flags) & kStrictMode)));