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

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

Issue 8139027: Version 3.6.5 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: '' Created 9 years, 2 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/ic.cc ('k') | src/incremental-marking.h » ('j') | 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #ifdef DEBUG 80 #ifdef DEBUG
81 // STORE_IC and KEYED_STORE_IC use Code::extra_ic_state() to mark 81 // STORE_IC and KEYED_STORE_IC use Code::extra_ic_state() to mark
82 // ICs as strict mode. The strict-ness of the IC must be preserved. 82 // ICs as strict mode. The strict-ness of the IC must be preserved.
83 Code* old_target = GetTargetAtAddress(address); 83 Code* old_target = GetTargetAtAddress(address);
84 if (old_target->kind() == Code::STORE_IC || 84 if (old_target->kind() == Code::STORE_IC ||
85 old_target->kind() == Code::KEYED_STORE_IC) { 85 old_target->kind() == Code::KEYED_STORE_IC) {
86 ASSERT(old_target->extra_ic_state() == target->extra_ic_state()); 86 ASSERT(old_target->extra_ic_state() == target->extra_ic_state());
87 } 87 }
88 #endif 88 #endif
89 Assembler::set_target_address_at(address, target->instruction_start()); 89 Assembler::set_target_address_at(address, target->instruction_start());
90 target->GetHeap()->incremental_marking()->RecordCodeTargetPatch(address,
91 target);
90 } 92 }
91 93
92 94
93 InlineCacheHolderFlag IC::GetCodeCacheForObject(Object* object, 95 InlineCacheHolderFlag IC::GetCodeCacheForObject(Object* object,
94 JSObject* holder) { 96 JSObject* holder) {
95 if (object->IsJSObject()) { 97 if (object->IsJSObject()) {
96 return GetCodeCacheForObject(JSObject::cast(object), holder); 98 return GetCodeCacheForObject(JSObject::cast(object), holder);
97 } 99 }
98 // If the object is a value, we use the prototype map for the cache. 100 // If the object is a value, we use the prototype map for the cache.
99 ASSERT(object->IsString() || object->IsNumber() || object->IsBoolean()); 101 ASSERT(object->IsString() || object->IsNumber() || object->IsBoolean());
(...skipping 21 matching lines...) Expand all
121 JSObject* IC::GetCodeCacheHolder(Object* object, InlineCacheHolderFlag holder) { 123 JSObject* IC::GetCodeCacheHolder(Object* object, InlineCacheHolderFlag holder) {
122 Object* map_owner = (holder == OWN_MAP ? object : object->GetPrototype()); 124 Object* map_owner = (holder == OWN_MAP ? object : object->GetPrototype());
123 ASSERT(map_owner->IsJSObject()); 125 ASSERT(map_owner->IsJSObject());
124 return JSObject::cast(map_owner); 126 return JSObject::cast(map_owner);
125 } 127 }
126 128
127 129
128 } } // namespace v8::internal 130 } } // namespace v8::internal
129 131
130 #endif // V8_IC_INL_H_ 132 #endif // V8_IC_INL_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/incremental-marking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698