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

Unified Diff: runtime/vm/intrinsifier.cc

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
Index: runtime/vm/intrinsifier.cc
diff --git a/runtime/vm/intrinsifier.cc b/runtime/vm/intrinsifier.cc
index 748c8c43617c580d31c023dd7039dae8c731b650..222dc4cf5c5f09bc21e1ddd1977d481951ea69cb 100644
--- a/runtime/vm/intrinsifier.cc
+++ b/runtime/vm/intrinsifier.cc
@@ -264,7 +264,7 @@ class BlockBuilder : public ValueObject {
SPREG));
}
- intptr_t TokenPos() {
+ TokenDescriptor TokenPos() {
return flow_graph_->function().token_pos();
}
@@ -294,7 +294,7 @@ static void PrepareIndexedOp(BlockBuilder* builder,
Definition* array,
Definition* index,
intptr_t length_offset) {
- intptr_t token_pos = builder->TokenPos();
+ TokenDescriptor token_pos = builder->TokenPos();
builder->AddInstruction(
new CheckSmiInstr(new Value(index),
Thread::kNoDeoptId,
@@ -304,7 +304,7 @@ static void PrepareIndexedOp(BlockBuilder* builder,
new LoadFieldInstr(new Value(array),
length_offset,
Type::ZoneHandle(Type::SmiType()),
- Token::kNoSourcePos));
+ TokenDescriptor::kNoSource));
builder->AddInstruction(
new CheckArrayBoundInstr(new Value(length),
new Value(index),

Powered by Google App Engine
This is Rietveld 408576698