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

Issue 11824067: Support for embedded Dart scripts (Closed)

Created:
7 years, 11 months ago by hausner
Modified:
7 years, 11 months ago
CC:
reviews_dartlang.org, Anton Muhin, podivilov1
Visibility:
Public.

Description

Support for embedded Dart scripts Add a line and column offset to scripts so that errors and exceptions in embedded Dart scripts are reported at the proper location. New API call Dart_LoadEmbeddedScript() that allows to specify line and column offsets. Stumbled on and fixed a bug. Script::kind field was not externalized to snapshot. Committed: https://code.google.com/p/dart/source/detail?r=16934

Patch Set 1 #

Total comments: 12

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -39 lines) Patch
M runtime/bin/dartutils.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/include/dart_api.h View 1 1 chunk +18 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 5 chunks +61 lines, -23 lines 0 comments Download
M runtime/vm/object.h View 2 chunks +7 lines, -1 line 0 comments Download
M runtime/vm/object.cc View 7 chunks +34 lines, -12 lines 0 comments Download
M runtime/vm/object_test.cc View 1 1 chunk +69 lines, -0 lines 0 comments Download
M runtime/vm/raw_object.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M runtime/vm/scanner.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
hausner
Anton and Pavel: FYI. My plan is to convert all call sites of Dart_LoadScript to ...
7 years, 11 months ago (2013-01-10 19:37:28 UTC) #1
Ivan Posva
DBC -ip https://codereview.chromium.org/11824067/diff/1/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://codereview.chromium.org/11824067/diff/1/runtime/vm/dart_api_impl.cc#newcode4058 runtime/vm/dart_api_impl.cc:4058: TIMERSCOPE(time_script_loading); How about calling Dart_LoadEmbeddedScript here with ...
7 years, 11 months ago (2013-01-10 20:16:32 UTC) #2
hausner
Thanks. https://codereview.chromium.org/11824067/diff/1/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://codereview.chromium.org/11824067/diff/1/runtime/vm/dart_api_impl.cc#newcode4058 runtime/vm/dart_api_impl.cc:4058: TIMERSCOPE(time_script_loading); On 2013/01/10 20:16:33, Ivan Posva wrote: > ...
7 years, 11 months ago (2013-01-10 20:22:32 UTC) #3
siva
LGTM with one comment about truncation warnings. https://codereview.chromium.org/11824067/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/11824067/diff/1/runtime/include/dart_api.h#newcode2617 runtime/include/dart_api.h:2617: * \line_offset ...
7 years, 11 months ago (2013-01-10 21:17:20 UTC) #4
hausner
Thank you. https://codereview.chromium.org/11824067/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/11824067/diff/1/runtime/include/dart_api.h#newcode2617 runtime/include/dart_api.h:2617: * \line_offset is the number of text ...
7 years, 11 months ago (2013-01-10 21:46:03 UTC) #5
Anton Muhin
7 years, 11 months ago (2013-01-14 12:46:57 UTC) #6
Message was sent while issue was closed.
Thanks a lot for heads up, Matthias.

Powered by Google App Engine
This is Rietveld 408576698