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

Unified Diff: vm/intermediate_language.cc

Issue 10829141: Support Throw and ReThrow in SSA-based compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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 | « vm/intermediate_language.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/intermediate_language.cc
===================================================================
--- vm/intermediate_language.cc (revision 10157)
+++ vm/intermediate_language.cc (working copy)
@@ -252,53 +252,6 @@
}
-intptr_t ReThrowInstr::InputCount() const {
- return 2;
-}
-
-
-Value* ReThrowInstr::InputAt(intptr_t i) const {
- if (i == 0) return exception();
- if (i == 1) return stack_trace();
- UNREACHABLE();
- return NULL;
-}
-
-
-void ReThrowInstr::SetInputAt(intptr_t i, Value* value) {
- if (i == 0) {
- exception_ = value;
- return;
- }
- if (i == 1) {
- stack_trace_ = value;
- return;
- }
- UNREACHABLE();
-}
-
-
-intptr_t ThrowInstr::InputCount() const {
- return 1;
-}
-
-
-Value* ThrowInstr::InputAt(intptr_t i) const {
- if (i == 0) return exception();
- UNREACHABLE();
- return NULL;
-}
-
-
-void ThrowInstr::SetInputAt(intptr_t i, Value* value) {
- if (i == 0) {
- exception_ = value;
- return;
- }
- UNREACHABLE();
-}
-
-
intptr_t GotoInstr::InputCount() const {
return 0;
}
@@ -1092,15 +1045,12 @@
LocationSummary* ThrowInstr::MakeLocationSummary() const {
- const int kNumInputs = 0;
- const int kNumTemps = 0;
- return new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall);
+ return new LocationSummary(0, 0, LocationSummary::kCall);
}
void ThrowInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
- ASSERT(exception()->IsUse());
compiler->GenerateCallRuntime(cid(),
token_pos(),
try_index(),
@@ -1110,15 +1060,11 @@
LocationSummary* ReThrowInstr::MakeLocationSummary() const {
- const int kNumInputs = 0;
- const int kNumTemps = 0;
- return new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall);
+ return new LocationSummary(0, 0, LocationSummary::kCall);
}
void ReThrowInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
- ASSERT(exception()->IsUse());
- ASSERT(stack_trace()->IsUse());
compiler->GenerateCallRuntime(cid(),
token_pos(),
try_index(),
« no previous file with comments | « vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698