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

Unified Diff: src/objects.cc

Issue 5699002: RFC: Switch to ast ids (instead of positions) for type feedback. (Closed)
Patch Set: Cleanup Created 10 years 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
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 399ab092a7edb47c7f7e531ecb73a56807a01231..e1e24e08bb6332c63f10adb3d3c6b6f7d562928e 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -5700,11 +5700,11 @@ void SharedFunctionInfo::EnableDeoptimizationSupport(Code* recompiled) {
}
-bool SharedFunctionInfo::VerifyBailoutId(int id) {
+bool SharedFunctionInfo::VerifyBailoutId(AstId id) {
// TODO(srdjan): debugging ARM crashes in hydrogen. OK to disable while
// we are always bailing out on ARM.
- ASSERT(id != AstNode::kNoNumber);
+ ASSERT(id != kNoAstId);
Code* unoptimized = code();
DeoptimizationOutputData* data =
DeoptimizationOutputData::cast(unoptimized->deoptimization_data());
@@ -6242,7 +6242,7 @@ void Code::Disassemble(const char* name) {
PrintF("%p %4d ", (instruction_start() + pc_offset), pc_offset);
table.PrintEntry(i);
PrintF(" (sp -> fp)");
- int deoptimization_index = table.GetDeoptimizationIndex(i);
+ AstId deoptimization_index = table.GetDeoptimizationIndex(i);
if (deoptimization_index != Safepoint::kNoDeoptimizationIndex) {
PrintF(" %6d", deoptimization_index);
} else {

Powered by Google App Engine
This is Rietveld 408576698