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

Unified Diff: runtime/vm/intermediate_language_x64.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_mips.cc ('k') | runtime/vm/intrinsifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_x64.cc
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc
index 1e919216a93a3cb80946df1e4848c3381770144a..53ca97b1a7d78144506d13b895ea527819037e27 100644
--- a/runtime/vm/intermediate_language_x64.cc
+++ b/runtime/vm/intermediate_language_x64.cc
@@ -329,7 +329,7 @@ LocationSummary* AssertBooleanInstr::MakeLocationSummary(Zone* zone,
static void EmitAssertBoolean(Register reg,
- intptr_t token_pos,
+ TokenPosition token_pos,
intptr_t deopt_id,
LocationSummary* locs,
FlowGraphCompiler* compiler) {
@@ -1683,7 +1683,7 @@ class BoxAllocationSlowPath : public SlowPathCode {
locs->live_registers()->Remove(Location::RegisterLocation(result_));
compiler->SaveLiveRegisters(locs);
- compiler->GenerateCall(Token::kNoSourcePos, // No token position.
+ compiler->GenerateCall(TokenPosition::kNoSource, // No token position.
stub_entry,
RawPcDescriptors::kOther,
locs);
@@ -2626,7 +2626,7 @@ class CheckStackOverflowSlowPath : public SlowPathCode {
// In unoptimized code, record loop stack checks as possible OSR entries.
compiler->AddCurrentDescriptor(RawPcDescriptors::kOsrEntry,
instruction_->deopt_id(),
- 0); // No token position.
+ TokenPosition::kNoSource);
}
compiler->pending_deoptimization_env_ = NULL;
compiler->RestoreLiveRegisters(instruction_->locs());
@@ -6190,7 +6190,7 @@ void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
// may be inserted before this instruction.
compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
GetDeoptId(),
- Token::kNoSourcePos);
+ TokenPosition::kNoSource);
}
if (HasParallelMove()) {
compiler->parallel_move_resolver()->EmitNativeCode(parallel_move());
@@ -6442,7 +6442,7 @@ void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
const Register result = locs()->out(0).reg();
__ PushObject(Object::null_object());
__ pushq(typed_data);
- compiler->GenerateRuntimeCall(Token::kNoSourcePos, // No token position.
+ compiler->GenerateRuntimeCall(TokenPosition::kNoSource,
deopt_id(),
kGrowRegExpStackRuntimeEntry,
1,
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | runtime/vm/intrinsifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698