Home | History | Annotate | Download | only in src

Lines Matching defs:code

6 //     * Redistributions of source code must retain the above copyright
200 // and does not count available bytes already in the old space or code
261 PrintF("Code space, used: %8d, available: %8d, waste: %8d\n",
716 // Visitor class to verify pointers in code or data space do not point into
801 // there are no intergenerational pointers in code or data spaces.
992 // Skip code object, we know it does not contain inter-generational
1002 // By definition, we do not care about remembered set bits in code,
1366 obj = AllocateMap(CODE_TYPE, Code::kHeaderSize);
1519 // gcc-4.4 has problem generating correct code of following snippet:
1609 // in JSObjects. The hash code has a special value so that it will not match
1612 // hash code in place. The hash code for the hidden_symbol is zero to ensure
1644 // Allocate cache for external strings pointing to native source code.
1856 Code* illegal = Builtins::builtin(Builtins::Illegal);
1858 Code* construct_stub = Builtins::builtin(Builtins::JSConstructStubGeneric);
2080 Object* Heap::LookupSingleCharacterStringFromCode(uint16_t code) {
2081 if (code <= String::kMaxAsciiCharCode) {
2082 Object* value = Heap::single_character_string_cache()->get(code);
2086 buffer[0] = static_cast<char>(code);
2090 Heap::single_character_string_cache()->set(code, result);
2097 answer->Set(0, code);
2186 Code::Flags flags,
2192 int obj_size = Code::SizeFor(body_size, sinfo_size);
2193 ASSERT(IsAligned(obj_size, Code::kCodeAlignment));
2205 Code* code = Code::cast(result);
2206 ASSERT(!CodeRange::exists() || CodeRange::contains(code->address()));
2207 code->set_instruction_size(desc.instr_size);
2208 code->set_relocation_size(desc.reloc_size);
2209 code->set_sinfo_size(sinfo_size);
2210 code->set_flags(flags);
2211 // Allow self references to created code object by patching the handle to
2212 // point to the newly allocated Code object.
2214 *(self_reference.location()) = code;
2216 // Migrate generated code.
2217 // The generated code can contain Object** values (typically from handles)
2219 // objects. These pointers can include references to the code object itself,
2221 code->CopyFrom(desc);
2222 if (sinfo != NULL) sinfo->Serialize(code); // write scope info
2225 code->Verify();
2227 return code;
2231 Object* Heap::CopyCode(Code* code) {
2232 // Allocate an object the same size as the code object.
2233 int obj_size = code->Size();
2243 // Copy code object.
2244 Address old_addr = code->address();
2250 Code* new_code = Code::cast(result);
2251 ASSERT(!CodeRange::exists() || CodeRange::contains(code->address()));
2427 // verification code has to cope with (temporarily) invalid objects. See
3091 // compilation cache to avoid hanging on to source code and
3092 // generated code for cached functions.
3125 PrintF(">>>>>> Code Stats (%s) >>>>>>\n", title);
3127 // We do not look for code in new space, map space, or old space. If code
3159 PrintF("Code space : ");
3394 // Iterate over the builtin code objects and code stubs in the
3395 // heap. Note that it is not necessary to iterate over code objects
3414 code is
3444 // of memory for each semispace because code in the snapshot has
3445 // write-barrier code that relies on the size and alignment of new
3559 // Initialize the code space, set its maximum capacity to the old
3561 // On 64-bit platform(s), we put all code objects in a 2 GB range of
3588 // The large object code space may contain code or data. We set the memory
3590 // explicitly when allocating large code objects.