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

Side by Side Diff: src/ic.cc

Issue 8130002: Make accessors for oddball objects return Oddball* instead of Object*. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: split InitializeThreadLocal into two parts 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/hydrogen.cc ('k') | src/isolate.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 original_code->instruction_start() - code->instruction_start(); 160 original_code->instruction_start() - code->instruction_start();
161 return addr + delta; 161 return addr + delta;
162 } 162 }
163 #endif 163 #endif
164 164
165 165
166 static bool HasNormalObjectsInPrototypeChain(Isolate* isolate, 166 static bool HasNormalObjectsInPrototypeChain(Isolate* isolate,
167 LookupResult* lookup, 167 LookupResult* lookup,
168 Object* receiver) { 168 Object* receiver) {
169 Object* end = lookup->IsProperty() 169 Object* end = lookup->IsProperty()
170 ? lookup->holder() : isolate->heap()->null_value(); 170 ? lookup->holder() : Object::cast(isolate->heap()->null_value());
171 for (Object* current = receiver; 171 for (Object* current = receiver;
172 current != end; 172 current != end;
173 current = current->GetPrototype()) { 173 current = current->GetPrototype()) {
174 if (current->IsJSObject() && 174 if (current->IsJSObject() &&
175 !JSObject::cast(current)->HasFastProperties() && 175 !JSObject::cast(current)->HasFastProperties() &&
176 !current->IsJSGlobalProxy() && 176 !current->IsJSGlobalProxy() &&
177 !current->IsJSGlobalObject()) { 177 !current->IsJSGlobalObject()) {
178 return true; 178 return true;
179 } 179 }
180 } 180 }
(...skipping 2327 matching lines...) Expand 10 before | Expand all | Expand 10 after
2508 #undef ADDR 2508 #undef ADDR
2509 }; 2509 };
2510 2510
2511 2511
2512 Address IC::AddressFromUtilityId(IC::UtilityId id) { 2512 Address IC::AddressFromUtilityId(IC::UtilityId id) {
2513 return IC_utilities[id]; 2513 return IC_utilities[id];
2514 } 2514 }
2515 2515
2516 2516
2517 } } // namespace v8::internal 2517 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698