Home | History | Annotate | Download | only in src

Lines Matching defs:code

6 //     * Redistributions of source code must retain the above copyright
982 accumulator->Add("<Code>");
1041 return reinterpret_cast<Code*>(this)->CodeSize();
1108 reinterpret_cast<Code*>(this)->CodeIterateBody(v);
1903 // present, add it with attributes NONE. This code is an exact clone of
2809 // caches which have a global property cell reference directly in the code.
2968 Object* Map::UpdateCodeCache(String* name, Code* code) {
2969 ASSERT(code->ic_state() == MONOMORPHIC);
2972 // When updating the code cache we disregard the type encoded in the
2975 Code::Flags flags = Code::RemoveTypeFromFlags(code->flags());
2977 // First check whether we can update existing code cache without
2990 cache->set(i + 1, code);
2994 Code::Flags found = Code::cast(cache->get(i + 1))->flags();
2995 if (Code::RemoveTypeFromFlags(found) == flags) {
2996 cache->set(i + 1, code);
3002 // Reached the end of the code cache. If there were deleted
3006 cache->set(deleted_index + 1, code);
3010 // Extend the code cache with some new entries (at least one).
3016 // Add the (name, code) pair to the new cache.
3019 cache->set(length + 1, code);
3025 Object* Map::FindInCodeCache(String* name, Code::Flags flags) {
3034 Code* code = Code::cast(cache->get(i + 1));
3035 if (code->flags() == flags) return code;
3042 int Map::IndexInCodeCache(Code* code) {
3046 if (array->get(i + 1) == code) return i + 1;
3059 array->set_null(index); // code
3425 // Found an element with the same hash-code.
4365 // Fast check: if hash code is computed for both strings
4450 // Should only be called if hash code has not yet been computed.
4453 // Compute the hash code.
4457 // Store the hash code in the object.
4460 // Check the hash code is there.
4500 Hash(); // force computation of hash code
4756 // Check the basic conditions for generating inline constructor code.
4844 // Support function for printing the source code to a StringStream
4897 Object* target = Code::GetCodeFromTargetAddress(rinfo->target_address());
4900 CHECK_EQ(target, old_target); // VisitPointer doesn't change Code* *target.
4907 Object* target = Code::GetCodeFromTargetAddress(rinfo->call_address());
4910 CHECK_EQ(target, old_target); // VisitPointer doesn't change Code* *target.
4914 void Code::CodeIterateBody(ObjectVisitor* v) {
4944 void Code::Relocate(intptr_t delta) {
4952 void Code::CopyFrom(const CodeDesc& desc) {
4953 // copy code
4981 // rewrite code handles in inline cache targets to direct
4982 // pointers to the first instruction in the code object
4984 Code* code = Code::cast(*p);
4985 it.rinfo()->set_target_address(code->instruction_start());
4994 // Locate the source position which is closest to the address in the code. This
4998 int Code::SourcePosition(Address pc) {
5002 // position. All the code needs to be considered as the sequence of the
5003 // instructions in the code does not necessarily follow the same order as the
5028 // Same as Code::SourcePosition above except it only looks for statement
5030 int Code::SourceStatementPosition(Address pc) {
5051 // Identify kind of code.
5052 const char* Code::Kind2String(Kind kind) {
5068 const char* Code::ICState2String(InlineCacheState state) {
5083 const char* Code::PropertyType2String(PropertyType type) {
5098 void Code::Disassemble(const char* name) {
6664 // code computation, we use a combination of the hash of the
6665 // script source code and the start and end positions. We do
6773 int chars_; // Caches the number of characters when computing the hash code.
8057 // Check if there is a break point at this code position.
8059 // Get the break point info object for this code position.
8063 // point info object there is no break point at this code position.
8069 // Get the break point info object for this code position.
8071 // Find the index of the break point info object for this code position.
8080 // Clear a break point at the specified code position.
8105 // Adding a new break point for a code position which did not have any
8143 // Get the break point objects for a code position.
8186 // Find the index of the break point info object for the specified code