Lines Matching defs:code
6 // * Redistributions of source code must retain the above copyright
44 Code::Flags flags,
62 // Get the code entry from the cache.
67 __ movl(offset, FieldOperand(kScratchRegister, Code::kFlagsOffset));
68 __ and_(offset, Immediate(~Code::kFlagsNotUsedInLookup));
72 // Jump to the first instruction in the code stub.
73 __ addq(kScratchRegister, Immediate(Code::kHeaderSize - kHeapObjectTag));
182 Code::Flags flags,
192 // Make sure that code is valid. The shifting code relies on the
197 ASSERT(Code::ExtractTypeFromFlags(flags) == 0);
292 // Generate code to check if an object is a string. If the object is
512 // Emitting a stub call may try to allocate (if the code is not
657 // Deferred code for fast API call case---clean preallocated space.
736 void StubCompiler::GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind) {
737 ASSERT(kind == Code::LOAD_IC || kind == Code::KEYED_LOAD_IC);
738 Code* code = NULL;
739 if (kind == Code::LOAD_IC) {
740 code = masm->isolate()->builtins()->builtin(Builtins::kLoadIC_Miss);
742 code = masm->isolate()->builtins()->builtin(Builtins::kKeyedLoadIC_Miss);
745 Handle<Code> ic(code);
833 // Generate code to check that a global property cell is empty. Create
936 // to it in the code. Load it from the map.
1096 // Emitting a stub call may try to allocate (if the code is not
1158 // Compile the interceptor call, followed by inline code to load the
1232 // Important invariant in CALLBACKS case: the code above must be
1267 if (kind_ == Code::KEYED_CALL_IC) {
1332 __ Jump(Handle<Code>(Code::cast(obj)), RelocInfo::CODE_TARGET);
1387 // Return the generated code.
1548 // Return the generated code.
1631 // Return the generated code.
1660 if (kind_ == Code::CALL_IC && extra_ic_state_ == DEFAULT_STRING_STUB) {
1713 // Return the generated code.
1742 if (kind_ == Code::CALL_IC && extra_ic_state_ == DEFAULT_STRING_STUB) {
1797 // Return the generated code.
1838 // Load the char code argument.
1839 Register code = rbx;
1840 __ movq(code, Operand(rsp, 1 * kPointerSize));
1842 // Check the code is a smi.
1844 __ JumpIfNotSmi(code, &slow);
1846 // Convert the smi code to uint16.
1847 __ SmiAndConstant(code, code, Smi::FromInt(0xffff));
1849 StringCharFromCodeGenerator char_from_code_generator(code, rax);
1866 // Return the generated code.
1979 // Return the generated code.
2037 // Return the generated code.
2172 // Return the generated code.
2239 // Return the generated code.
2288 // Jump to the cached code (tail call).
2295 // code field in the function to allow recompilation to take effect
2300 Handle<Code> code(function->code());
2301 __ InvokeCode(code, expected, arguments(),
2310 // Return the generated code.
2327 // Generate store field code. Preserves receiver and name on jump to miss.
2337 Handle<Code> ic = isolate()->builtins()->StoreIC_Miss();
2340 // Return the generated code.
2387 Handle<Code> ic = isolate()->builtins()->StoreIC_Miss();
2390 // Return the generated code.
2436 Handle<Code> ic = isolate()->builtins()->StoreIC_Miss();
2439 // Return the generated code.
2480 Handle<Code> ic = isolate()->builtins()->StoreIC_Miss();
2483 // Return the generated code.
2507 // Generate store field code. Preserves receiver and name on jump to miss.
2518 Handle<Code> ic = isolate()->builtins()->KeyedStoreIC_Miss();
2521 // Return the generated code.
2575 Handle<Code> ic = isolate()->builtins()->KeyedStoreIC_Miss();
2578 // Return the generated code.
2621 GenerateLoadMiss(masm(), Code::LOAD_IC);
2623 // Return the generated code.
2641 GenerateLoadMiss(masm(), Code::LOAD_IC);
2643 // Return the generated code.
2667 GenerateLoadMiss(masm(), Code::LOAD_IC);
2669 // Return the generated code.
2687 Code::LOAD_IC);
2689 // Return the generated code.
2721 GenerateLoadMiss(masm(), Code::LOAD_IC);
2723 // Return the generated code.
2770 GenerateLoadMiss(masm(), Code::LOAD_IC);
2772 // Return the generated code.
2799 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2801 // Return the generated code.
2835 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2837 // Return the generated code.
2864 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2866 // Return the generated code.
2902 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2904 // Return the generated code.
2927 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2929 // Return the generated code.
2952 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2954 // Return the generated code.
2977 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
2979 // Return the generated code.
3023 GenerateLoadMiss(masm(), Code::KEYED_LOAD_IC);
3025 // Return the generated code.
3045 // Check to see whether there are any break points in the function code. If
3047 // code for the function thereby hitting the break points.
3150 // Jump to the generic stub in case the specialized code cannot handle the
3153 Code* code =
3155 Handle<Code> generic_construct_stub(code);
3158 // Return the generated code.
3164 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags) {
3286 // Return the generated code.
3292 JSObject* receiver, ExternalArrayType array_type, Code::Flags flags) {
3447 Code::ExtractExtraICStateFromFlags(flags) & kStrictMode));