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

Side by Side Diff: src/objects.cc

Issue 18602003: Encapsulate compare nil ic_state. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « src/objects.h ('k') | src/type-info.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 9958 matching lines...) Expand 10 before | Expand all | Expand 10 after
9969 VisitPointer(rinfo->target_object_address()); 9969 VisitPointer(rinfo->target_object_address());
9970 } 9970 }
9971 9971
9972 9972
9973 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) { 9973 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) {
9974 Address* p = rinfo->target_reference_address(); 9974 Address* p = rinfo->target_reference_address();
9975 VisitExternalReferences(p, p + 1); 9975 VisitExternalReferences(p, p + 1);
9976 } 9976 }
9977 9977
9978 9978
9979 byte Code::compare_nil_state() {
9980 ASSERT(is_compare_nil_ic_stub());
9981 return CompareNilICStub::ExtractTypesFromExtraICState(
9982 extended_extra_ic_state());
9983 }
9984
9985
9986 byte Code::compare_nil_value() {
9987 ASSERT(is_compare_nil_ic_stub());
9988 return CompareNilICStub::ExtractNilValueFromExtraICState(
9989 extended_extra_ic_state());
9990 }
9991
9992
9993 void Code::InvalidateRelocation() { 9979 void Code::InvalidateRelocation() {
9994 set_relocation_info(GetHeap()->empty_byte_array()); 9980 set_relocation_info(GetHeap()->empty_byte_array());
9995 } 9981 }
9996 9982
9997 9983
9998 void Code::Relocate(intptr_t delta) { 9984 void Code::Relocate(intptr_t delta) {
9999 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) { 9985 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) {
10000 it.rinfo()->apply(delta); 9986 it.rinfo()->apply(delta);
10001 } 9987 }
10002 CPU::FlushICache(instruction_start(), instruction_size()); 9988 CPU::FlushICache(instruction_start(), instruction_size());
(...skipping 5867 matching lines...) Expand 10 before | Expand all | Expand 10 after
15870 15856
15871 void PropertyCell::AddDependentCode(Handle<Code> code) { 15857 void PropertyCell::AddDependentCode(Handle<Code> code) {
15872 Handle<DependentCode> codes = DependentCode::Insert( 15858 Handle<DependentCode> codes = DependentCode::Insert(
15873 Handle<DependentCode>(dependent_code()), 15859 Handle<DependentCode>(dependent_code()),
15874 DependentCode::kPropertyCellChangedGroup, code); 15860 DependentCode::kPropertyCellChangedGroup, code);
15875 if (*codes != dependent_code()) set_dependent_code(*codes); 15861 if (*codes != dependent_code()) set_dependent_code(*codes);
15876 } 15862 }
15877 15863
15878 15864
15879 } } // namespace v8::internal 15865 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698