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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 253013006: Add flag —source-lines which emits appropriate source lines as code comments. Added token_pos to … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 35511)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -98,8 +98,9 @@
CheckClassInstr::CheckClassInstr(Value* value,
intptr_t deopt_id,
- const ICData& unary_checks)
- : unary_checks_(unary_checks), licm_hoisted_(false) {
+ const ICData& unary_checks,
+ intptr_t token_pos)
+ : unary_checks_(unary_checks), licm_hoisted_(false), token_pos_(token_pos) {
ASSERT(unary_checks.IsZoneHandle());
// Expected useful check data.
ASSERT(!unary_checks_.IsNull());
@@ -3201,9 +3202,11 @@
InvokeMathCFunctionInstr::InvokeMathCFunctionInstr(
ZoneGrowableArray<Value*>* inputs,
intptr_t original_deopt_id,
- MethodRecognizer::Kind recognized_kind)
+ MethodRecognizer::Kind recognized_kind,
+ intptr_t token_pos)
: inputs_(inputs),
- recognized_kind_(recognized_kind) {
+ recognized_kind_(recognized_kind),
+ token_pos_(token_pos) {
ASSERT(inputs_->length() == ArgumentCountFor(recognized_kind_));
for (intptr_t i = 0; i < inputs_->length(); ++i) {
ASSERT((*inputs)[i] != NULL);

Powered by Google App Engine
This is Rietveld 408576698