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

Unified Diff: runtime/vm/intermediate_language_arm.cc

Issue 2739663002: Revert "Replacing TrySync with Metadata" (Closed)
Patch Set: Created 3 years, 9 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/heap.cc ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_arm.cc
diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc
index cfc80193d0adf13b47989fd0fb19f7616be4e34a..3f9e1f38052212fa7d8e2f1a3ddc27e5900eda21 100644
--- a/runtime/vm/intermediate_language_arm.cc
+++ b/runtime/vm/intermediate_language_arm.cc
@@ -241,7 +241,6 @@ void ClosureCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
__ LoadImmediate(R9, 0);
__ blx(R2);
compiler->RecordSafepoint(locs());
- compiler->EmitCatchEntryState();
// Marks either the continuation point in unoptimized code or the
// deoptimization point in optimized code, after call.
const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id());
@@ -2477,9 +2476,8 @@ void CreateArrayInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
const Code& stub = Code::ZoneHandle(compiler->zone(),
StubCode::AllocateArray_entry()->code());
compiler->AddStubCallTarget(stub);
- compiler->GenerateCallWithDeopt(token_pos(), deopt_id(),
- *StubCode::AllocateArray_entry(),
- RawPcDescriptors::kOther, locs());
+ compiler->GenerateCall(token_pos(), *StubCode::AllocateArray_entry(),
+ RawPcDescriptors::kOther, locs());
ASSERT(locs()->out(0).reg() == kResultReg);
}
@@ -3129,10 +3127,6 @@ class CheckedSmiSlowPath : public SlowPathCode {
locs->live_registers()->Remove(Location::RegisterLocation(result));
compiler->SaveLiveRegisters(locs);
- if (instruction_->env() != NULL) {
- Environment* env = compiler->SlowPathEnvironmentFor(instruction_);
- compiler->pending_deoptimization_env_ = env;
- }
__ Push(locs->in(0).reg());
__ Push(locs->in(1).reg());
compiler->EmitMegamorphicInstanceCall(
@@ -3143,7 +3137,6 @@ class CheckedSmiSlowPath : public SlowPathCode {
__ mov(result, Operand(R0));
compiler->RestoreLiveRegisters(locs);
__ b(exit_label());
- compiler->pending_deoptimization_env_ = NULL;
}
private:
@@ -3268,10 +3261,6 @@ class CheckedSmiComparisonSlowPath : public SlowPathCode {
locs->live_registers()->Remove(Location::RegisterLocation(result));
compiler->SaveLiveRegisters(locs);
- if (instruction_->env() != NULL) {
- Environment* env = compiler->SlowPathEnvironmentFor(instruction_);
- compiler->pending_deoptimization_env_ = env;
- }
__ Push(locs->in(0).reg());
__ Push(locs->in(1).reg());
compiler->EmitMegamorphicInstanceCall(
@@ -3281,7 +3270,6 @@ class CheckedSmiComparisonSlowPath : public SlowPathCode {
/* slow_path_argument_count = */ 2);
__ mov(result, Operand(R0));
compiler->RestoreLiveRegisters(locs);
- compiler->pending_deoptimization_env_ = NULL;
if (merged_) {
__ CompareObject(result, Bool::True());
__ b(
@@ -6411,7 +6399,6 @@ class RangeErrorSlowPath : public SlowPathCode {
}
__ Bind(entry_label());
LocationSummary* locs = instruction_->locs();
- compiler->SaveLiveRegisters(locs);
__ Push(locs->in(0).reg());
__ Push(locs->in(1).reg());
__ CallRuntime(kRangeErrorRuntimeEntry, 2);
@@ -6419,8 +6406,6 @@ class RangeErrorSlowPath : public SlowPathCode {
RawPcDescriptors::kOther, compiler->assembler()->CodeSize(),
instruction_->deopt_id(), instruction_->token_pos(), try_index_);
compiler->RecordSafepoint(locs, 2);
- Environment* env = compiler->SlowPathEnvironmentFor(instruction_);
- compiler->EmitCatchEntryState(env, try_index_);
__ bkpt(0);
}
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698