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

Side by Side Diff: src/hydrogen.cc

Issue 10702164: Perform HasFastProperties check on prototypes when computing call targets in Crankshaft, part 2. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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 | « no previous file | test/mjsunit/regress/regress-crbug-125148.js » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5619 matching lines...) Expand 10 before | Expand all | Expand 10 after
5630 HValue* context = environment()->LookupContext(); 5630 HValue* context = environment()->LookupContext();
5631 return new(zone()) HLoadNamedGeneric(context, obj, name); 5631 return new(zone()) HLoadNamedGeneric(context, obj, name);
5632 } 5632 }
5633 5633
5634 5634
5635 static void LookupInPrototypes(Handle<Map> map, 5635 static void LookupInPrototypes(Handle<Map> map,
5636 Handle<String> name, 5636 Handle<String> name,
5637 LookupResult* lookup) { 5637 LookupResult* lookup) {
5638 while (map->prototype()->IsJSObject()) { 5638 while (map->prototype()->IsJSObject()) {
5639 Handle<JSObject> holder(JSObject::cast(map->prototype())); 5639 Handle<JSObject> holder(JSObject::cast(map->prototype()));
5640 if (!holder->HasFastProperties()) break;
5640 map = Handle<Map>(holder->map()); 5641 map = Handle<Map>(holder->map());
5641 map->LookupDescriptor(*holder, *name, lookup); 5642 map->LookupDescriptor(*holder, *name, lookup);
5642 if (lookup->IsFound()) return; 5643 if (lookup->IsFound()) return;
5643 } 5644 }
5644 lookup->NotFound(); 5645 lookup->NotFound();
5645 } 5646 }
5646 5647
5647 5648
5648 HInstruction* HGraphBuilder::BuildCallGetter(HValue* obj, 5649 HInstruction* HGraphBuilder::BuildCallGetter(HValue* obj,
5649 Property* expr, 5650 Property* expr,
(...skipping 3916 matching lines...) Expand 10 before | Expand all | Expand 10 after
9566 } 9567 }
9567 } 9568 }
9568 9569
9569 #ifdef DEBUG 9570 #ifdef DEBUG
9570 if (graph_ != NULL) graph_->Verify(false); // No full verify. 9571 if (graph_ != NULL) graph_->Verify(false); // No full verify.
9571 if (allocator_ != NULL) allocator_->Verify(); 9572 if (allocator_ != NULL) allocator_->Verify();
9572 #endif 9573 #endif
9573 } 9574 }
9574 9575
9575 } } // namespace v8::internal 9576 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-125148.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698