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

Side by Side Diff: src/objects.cc

Issue 14862009: Encapsulating Type information in the CompareICStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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 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 9550 matching lines...) Expand 10 before | Expand all | Expand 10 after
9561 void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) { 9561 void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) {
9562 ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); 9562 ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT);
9563 VisitPointer(rinfo->target_object_address()); 9563 VisitPointer(rinfo->target_object_address());
9564 } 9564 }
9565 9565
9566 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) { 9566 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) {
9567 Address* p = rinfo->target_reference_address(); 9567 Address* p = rinfo->target_reference_address();
9568 VisitExternalReferences(p, p + 1); 9568 VisitExternalReferences(p, p + 1);
9569 } 9569 }
9570 9570
9571 byte Code::compare_nil_state() { 9571 byte Code::compare_nil_types() {
9572 ASSERT(is_compare_nil_ic_stub()); 9572 ASSERT(is_compare_nil_ic_stub());
9573 return CompareNilICStub::TypesFromExtraICState(extended_extra_ic_state()); 9573 return CompareNilICStub::ExtractTypesFromExtraICState(
9574 extended_extra_ic_state());
9574 } 9575 }
9575 9576
9576 9577
9577 void Code::InvalidateRelocation() { 9578 void Code::InvalidateRelocation() {
9578 set_relocation_info(GetHeap()->empty_byte_array()); 9579 set_relocation_info(GetHeap()->empty_byte_array());
9579 } 9580 }
9580 9581
9581 9582
9582 void Code::Relocate(intptr_t delta) { 9583 void Code::Relocate(intptr_t delta) {
9583 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) { 9584 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) {
(...skipping 5553 matching lines...) Expand 10 before | Expand all | Expand 10 after
15137 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); 15138 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER);
15138 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); 15139 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER);
15139 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); 15140 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER);
15140 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); 15141 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER);
15141 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); 15142 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER);
15142 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); 15143 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER);
15143 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); 15144 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER);
15144 } 15145 }
15145 15146
15146 } } // namespace v8::internal 15147 } } // namespace v8::internal
OLDNEW
« src/hydrogen.cc ('K') | « src/objects.h ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698