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

Unified Diff: src/serialize.cc

Issue 606083004: Fulfill some code serializer related TODOs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/lithium.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/serialize.cc
diff --git a/src/serialize.cc b/src/serialize.cc
index 9d59b6fd4ff51da65939ed77a5c0eba333649ed9..a3d6ebda3bb33cc840d109fad2ab9e586ecfbc29 100644
--- a/src/serialize.cc
+++ b/src/serialize.cc
@@ -1985,6 +1985,7 @@ void CodeSerializer::SerializeCodeStub(Code* stub, HowToCode how_to_code,
(how_to_code == kFromCode && where_to_point == kInnerPointer));
uint32_t stub_key = stub->stub_key();
DCHECK(CodeStub::MajorKeyFromKey(stub_key) != CodeStub::NoCache);
+ DCHECK(CodeStub::GetCode(isolate(), stub_key)->IsCode());
int index = AddCodeStubKey(stub_key) + kCodeStubsBaseIndex;
« no previous file with comments | « src/lithium.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698