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

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
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intrinsifier.cc
diff --git a/runtime/vm/intrinsifier.cc b/runtime/vm/intrinsifier.cc
index 748c8c43617c580d31c023dd7039dae8c731b650..accc70fb951817f5e4284a1094f49a795e22fb3a 100644
--- a/runtime/vm/intrinsifier.cc
+++ b/runtime/vm/intrinsifier.cc
@@ -264,7 +264,7 @@ class BlockBuilder : public ValueObject {
SPREG));
}
- intptr_t TokenPos() {
+ TokenPosition 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();
+ TokenPosition 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));
+ TokenPosition::kNoSource));
builder->AddInstruction(
new CheckArrayBoundInstr(new Value(length),
new Value(index),
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698