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

Unified Diff: src/safepoint-table.h

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/safepoint-table.h
diff --git a/src/safepoint-table.h b/src/safepoint-table.h
index 010ac5759bee7413ad27929783516209625aeafc..474aeba0dea9fba1c044e9ca6c6586f3984615e8 100644
--- a/src/safepoint-table.h
+++ b/src/safepoint-table.h
@@ -52,10 +52,10 @@ class SafepointTable BASE_EMBEDDED {
return Memory::uint32_at(GetPcOffsetLocation(index));
}
- int GetDeoptimizationIndex(unsigned index) const {
+ AstId GetDeoptimizationIndex(unsigned index) const {
ASSERT(index < length_);
unsigned value = Memory::uint32_at(GetDeoptimizationLocation(index));
- return DeoptimizationIndexField::decode(value);
+ return static_cast<AstId>(DeoptimizationIndexField::decode(value));
}
unsigned GetGapCodeSize(unsigned index) const {
@@ -114,7 +114,7 @@ class SafepointTable BASE_EMBEDDED {
class Safepoint BASE_EMBEDDED {
public:
- static const int kNoDeoptimizationIndex = 0x00ffffff;
+ static const AstId kNoDeoptimizationIndex = 0x00ffffff;
void DefinePointerSlot(int index) { indexes_->Add(index); }
void DefinePointerRegister(Register reg) { registers_->Add(reg.code()); }

Powered by Google App Engine
This is Rietveld 408576698