Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: src/objects-inl.h

Issue 2928: Propagate the information that a monomorphic prototype failure has... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after
2102 2102
2103 void Map::ClearCodeCache() { 2103 void Map::ClearCodeCache() {
2104 // No write barrier is needed since empty_fixed_array is not in new space. 2104 // No write barrier is needed since empty_fixed_array is not in new space.
2105 // Please note this function is used during marking: 2105 // Please note this function is used during marking:
2106 // - MarkCompactCollector::MarkUnmarkedObject 2106 // - MarkCompactCollector::MarkUnmarkedObject
2107 ASSERT(!Heap::InNewSpace(Heap::empty_fixed_array())); 2107 ASSERT(!Heap::InNewSpace(Heap::empty_fixed_array()));
2108 WRITE_FIELD(this, kCodeCacheOffset, Heap::empty_fixed_array()); 2108 WRITE_FIELD(this, kCodeCacheOffset, Heap::empty_fixed_array());
2109 } 2109 }
2110 2110
2111 2111
2112 Object* Map::FindInCodeCache(String* name, Code::Flags flags) {
2113 int index;
2114 return FindIndexInCodeCache(name, flags, &index);
2115 }
2116
2117
2118 void Map::RemoveFromCodeCache(int index) {
2119 FixedArray* array = code_cache();
2120 ASSERT(array->length() >= index && array->get(index)->IsCode());
2121 array->set_undefined(index - 1); // key
2122 array->set_undefined(index); // code
2123 }
2124
2125
2112 #undef CAST_ACCESSOR 2126 #undef CAST_ACCESSOR
2113 #undef INT_ACCESSORS 2127 #undef INT_ACCESSORS
2114 #undef SMI_ACCESSORS 2128 #undef SMI_ACCESSORS
2115 #undef ACCESSORS 2129 #undef ACCESSORS
2116 #undef FIELD_ADDR 2130 #undef FIELD_ADDR
2117 #undef READ_FIELD 2131 #undef READ_FIELD
2118 #undef WRITE_FIELD 2132 #undef WRITE_FIELD
2119 #undef WRITE_BARRIER 2133 #undef WRITE_BARRIER
2120 #undef READ_MEMADDR_FIELD 2134 #undef READ_MEMADDR_FIELD
2121 #undef WRITE_MEMADDR_FIELD 2135 #undef WRITE_MEMADDR_FIELD
2122 #undef READ_DOUBLE_FIELD 2136 #undef READ_DOUBLE_FIELD
2123 #undef WRITE_DOUBLE_FIELD 2137 #undef WRITE_DOUBLE_FIELD
2124 #undef READ_INT_FIELD 2138 #undef READ_INT_FIELD
2125 #undef WRITE_INT_FIELD 2139 #undef WRITE_INT_FIELD
2126 #undef READ_SHORT_FIELD 2140 #undef READ_SHORT_FIELD
2127 #undef WRITE_SHORT_FIELD 2141 #undef WRITE_SHORT_FIELD
2128 #undef READ_BYTE_FIELD 2142 #undef READ_BYTE_FIELD
2129 #undef WRITE_BYTE_FIELD 2143 #undef WRITE_BYTE_FIELD
2130 2144
2131 2145
2132 } } // namespace v8::internal 2146 } } // namespace v8::internal
2133 2147
2134 #endif // V8_OBJECTS_INL_H_ 2148 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698