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

Side by Side Diff: src/hydrogen.cc

Issue 179163003: Merged r19440 into 3.24 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
Patch Set: Created 6 years, 10 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.h ('k') | src/hydrogen-instructions.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 5448 matching lines...) Expand 10 before | Expand all | Expand 10 after
5459 if (lookup_.IsFound()) { 5459 if (lookup_.IsFound()) {
5460 if (IsLoad()) return true; 5460 if (IsLoad()) return true;
5461 return !lookup_.IsReadOnly() && lookup_.IsCacheable(); 5461 return !lookup_.IsReadOnly() && lookup_.IsCacheable();
5462 } 5462 }
5463 if (!LookupInPrototypes()) return false; 5463 if (!LookupInPrototypes()) return false;
5464 if (IsLoad()) return true; 5464 if (IsLoad()) return true;
5465 5465
5466 if (lookup_.IsPropertyCallbacks()) return true; 5466 if (lookup_.IsPropertyCallbacks()) return true;
5467 Handle<Map> map = this->map(); 5467 Handle<Map> map = this->map();
5468 map->LookupTransition(NULL, *name_, &lookup_); 5468 map->LookupTransition(NULL, *name_, &lookup_);
5469 if (lookup_.IsTransitionToField(*map) && map->unused_property_fields() > 0) { 5469 if (lookup_.IsTransitionToField() && map->unused_property_fields() > 0) {
5470 transition_ = handle(lookup_.GetTransitionMapFromMap(*map));
5471 return true; 5470 return true;
5472 } 5471 }
5473 return false; 5472 return false;
5474 } 5473 }
5475 5474
5476 5475
5477 bool HOptimizedGraphBuilder::PropertyAccessInfo::CanAccessAsMonomorphic( 5476 bool HOptimizedGraphBuilder::PropertyAccessInfo::CanAccessAsMonomorphic(
5478 SmallMapList* types) { 5477 SmallMapList* types) {
5479 ASSERT(type_->Is(ToType(types->first()))); 5478 ASSERT(type_->Is(ToType(types->first())));
5480 if (!CanAccessMonomorphic()) return false; 5479 if (!CanAccessMonomorphic()) return false;
(...skipping 5758 matching lines...) Expand 10 before | Expand all | Expand 10 after
11239 if (ShouldProduceTraceOutput()) { 11238 if (ShouldProduceTraceOutput()) {
11240 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 11239 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
11241 } 11240 }
11242 11241
11243 #ifdef DEBUG 11242 #ifdef DEBUG
11244 graph_->Verify(false); // No full verify. 11243 graph_->Verify(false); // No full verify.
11245 #endif 11244 #endif
11246 } 11245 }
11247 11246
11248 } } // namespace v8::internal 11247 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.h ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698