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

Side by Side Diff: src/objects.cc

Issue 16361015: Migrate Compare ICs to new type rep (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 7 years, 6 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 9994 matching lines...) Expand 10 before | Expand all | Expand 10 after
10005 void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) { 10005 void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) {
10006 ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); 10006 ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT);
10007 VisitPointer(rinfo->target_object_address()); 10007 VisitPointer(rinfo->target_object_address());
10008 } 10008 }
10009 10009
10010 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) { 10010 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) {
10011 Address* p = rinfo->target_reference_address(); 10011 Address* p = rinfo->target_reference_address();
10012 VisitExternalReferences(p, p + 1); 10012 VisitExternalReferences(p, p + 1);
10013 } 10013 }
10014 10014
10015 byte Code::compare_nil_types() { 10015 byte Code::compare_nil_state() {
10016 ASSERT(is_compare_nil_ic_stub()); 10016 ASSERT(is_compare_nil_ic_stub());
10017 return CompareNilICStub::ExtractTypesFromExtraICState( 10017 return CompareNilICStub::ExtractTypesFromExtraICState(
10018 extended_extra_ic_state()); 10018 extended_extra_ic_state());
10019 } 10019 }
10020 10020
10021 10021
10022 void Code::InvalidateRelocation() { 10022 void Code::InvalidateRelocation() {
10023 set_relocation_info(GetHeap()->empty_byte_array()); 10023 set_relocation_info(GetHeap()->empty_byte_array());
10024 } 10024 }
10025 10025
(...skipping 5678 matching lines...) Expand 10 before | Expand all | Expand 10 after
15704 15704
15705 15705
15706 void JSTypedArray::Neuter() { 15706 void JSTypedArray::Neuter() {
15707 set_byte_offset(Smi::FromInt(0)); 15707 set_byte_offset(Smi::FromInt(0));
15708 set_byte_length(Smi::FromInt(0)); 15708 set_byte_length(Smi::FromInt(0));
15709 set_length(Smi::FromInt(0)); 15709 set_length(Smi::FromInt(0));
15710 set_elements(GetHeap()->EmptyExternalArrayForMap(map())); 15710 set_elements(GetHeap()->EmptyExternalArrayForMap(map()));
15711 } 15711 }
15712 15712
15713 } } // namespace v8::internal 15713 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698