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

Side by Side Diff: src/objects-debug.cc

Issue 12225099: Remove prototype checks for leaf maps in optimized code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rename "dependent codes" and add comment. Created 7 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
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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 597
598 598
599 void Code::VerifyEmbeddedMapsDependency() { 599 void Code::VerifyEmbeddedMapsDependency() {
600 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); 600 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT);
601 for (RelocIterator it(this, mode_mask); !it.done(); it.next()) { 601 for (RelocIterator it(this, mode_mask); !it.done(); it.next()) {
602 RelocInfo::Mode mode = it.rinfo()->rmode(); 602 RelocInfo::Mode mode = it.rinfo()->rmode();
603 if (mode == RelocInfo::EMBEDDED_OBJECT && 603 if (mode == RelocInfo::EMBEDDED_OBJECT &&
604 it.rinfo()->target_object()->IsMap()) { 604 it.rinfo()->target_object()->IsMap()) {
605 Map* map = Map::cast(it.rinfo()->target_object()); 605 Map* map = Map::cast(it.rinfo()->target_object());
606 if (map->CanTransition()) { 606 if (map->CanTransition()) {
607 CHECK(map->dependent_codes()->Contains( 607 CHECK(map->dependent_code()->Contains(
608 DependentCodes::kWeaklyEmbeddedGroup, this)); 608 DependentCode::kWeaklyEmbeddedGroup, this));
609 } 609 }
610 } 610 }
611 } 611 }
612 } 612 }
613 613
614 614
615 void JSArray::JSArrayVerify() { 615 void JSArray::JSArrayVerify() {
616 JSObjectVerify(); 616 JSObjectVerify();
617 CHECK(length()->IsNumber() || length()->IsUndefined()); 617 CHECK(length()->IsNumber() || length()->IsUndefined());
618 CHECK(elements()->IsUndefined() || 618 CHECK(elements()->IsUndefined() ||
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 for (int i = 0; i < number_of_transitions(); ++i) { 1031 for (int i = 0; i < number_of_transitions(); ++i) {
1032 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; 1032 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
1033 } 1033 }
1034 return true; 1034 return true;
1035 } 1035 }
1036 1036
1037 1037
1038 #endif // DEBUG 1038 #endif // DEBUG
1039 1039
1040 } } // namespace v8::internal 1040 } } // namespace v8::internal
OLDNEW
« src/objects.h ('K') | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698