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

Issue 9614006: - Proper URI resolution when loading scripts from the standalone binary. (Closed)

Created:
8 years, 9 months ago by Ivan Posva
Modified:
8 years, 9 months ago
Reviewers:
ahe, Søren Gjesse, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Proper URI resolution when loading scripts from the standalone binary. Committed: https://code.google.com/p/dart/source/detail?r=5135

Patch Set 1 #

Total comments: 17

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -173 lines) Patch
M bin/builtin.dart View 1 2 2 chunks +40 lines, -3 lines 0 comments Download
M bin/builtin_nolib.cc View 1 2 2 chunks +13 lines, -11 lines 0 comments Download
M bin/gen_snapshot.cc View 1 2 3 chunks +12 lines, -14 lines 0 comments Download
M bin/main.cc View 1 2 18 chunks +113 lines, -138 lines 0 comments Download
M vm/dart_api_impl.cc View 1 2 2 chunks +28 lines, -7 lines 0 comments Download
M vm/object_store.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M vm/object_store.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Ivan Posva
Peter, please review the use of the dart:uri library in builtin.dart. Søren, this is a ...
8 years, 9 months ago (2012-03-06 01:00:53 UTC) #1
ahe
https://chromiumcodereview.appspot.com/9614006/diff/1/bin/builtin.dart File bin/builtin.dart (right): https://chromiumcodereview.appspot.com/9614006/diff/1/bin/builtin.dart#newcode1 bin/builtin.dart:1: // Copyright (c) 2011, the Dart project authors. Please ...
8 years, 9 months ago (2012-03-06 08:27:15 UTC) #2
Ivan Posva
https://chromiumcodereview.appspot.com/9614006/diff/1/bin/builtin.dart File bin/builtin.dart (right): https://chromiumcodereview.appspot.com/9614006/diff/1/bin/builtin.dart#newcode33 bin/builtin.dart:33: // TODO(iposva): Make these private once the Dart API ...
8 years, 9 months ago (2012-03-07 07:46:53 UTC) #3
ahe
FYI https://chromiumcodereview.appspot.com/9614006/diff/1/bin/builtin.dart File bin/builtin.dart (right): https://chromiumcodereview.appspot.com/9614006/diff/1/bin/builtin.dart#newcode33 bin/builtin.dart:33: // TODO(iposva): Make these private once the Dart ...
8 years, 9 months ago (2012-03-07 08:22:37 UTC) #4
siva
LGTM https://chromiumcodereview.appspot.com/9614006/diff/1/bin/gen_snapshot.cc File bin/gen_snapshot.cc (right): https://chromiumcodereview.appspot.com/9614006/diff/1/bin/gen_snapshot.cc#newcode277 bin/gen_snapshot.cc:277: Dart_Handle import_map = Dart_NewList(0); import_map = Dart_Null(); https://chromiumcodereview.appspot.com/9614006/diff/1/bin/main.cc ...
8 years, 9 months ago (2012-03-07 18:32:17 UTC) #5
Ivan Posva
https://chromiumcodereview.appspot.com/9614006/diff/9001/bin/main.cc File bin/main.cc (right): https://chromiumcodereview.appspot.com/9614006/diff/9001/bin/main.cc#newcode414 bin/main.cc:414: return true; On 2012/03/07 18:32:17, asiva wrote: > This ...
8 years, 9 months ago (2012-03-07 22:45:17 UTC) #6
Ivan Posva
8 years, 9 months ago (2012-03-08 00:49:33 UTC) #7
https://chromiumcodereview.appspot.com/9614006/diff/1/bin/gen_snapshot.cc
File bin/gen_snapshot.cc (right):

https://chromiumcodereview.appspot.com/9614006/diff/1/bin/gen_snapshot.cc#new...
bin/gen_snapshot.cc:277: Dart_Handle import_map = Dart_NewList(0);
On 2012/03/07 18:32:17, asiva wrote:
> import_map = Dart_Null();

Done.

https://chromiumcodereview.appspot.com/9614006/diff/1/bin/main.cc
File bin/main.cc (right):

https://chromiumcodereview.appspot.com/9614006/diff/1/bin/main.cc#newcode259
bin/main.cc:259: Dart_Handle builtin_lib =
Builtin::LoadLibrary(Builtin::kBuiltinLibrary);
On 2012/03/07 18:32:17, asiva wrote:
> Why not store builtin_lib in a persistent handle instead of calling this
> everytime.

Because you would need a current isolate to a group of persistent handle
mapping.

https://chromiumcodereview.appspot.com/9614006/diff/1/bin/main.cc#newcode268
bin/main.cc:268: Dart_NewString(""), Dart_NewString("resolveUri"),
On 2012/03/07 18:32:17, asiva wrote:
> Why not store
> 
> Dart_NewString("");
> Dart_NewString("resolveurii");
> Dart_NewString("filePathFromUri");
> 
> in persistent handles.

ditto

https://chromiumcodereview.appspot.com/9614006/diff/1/vm/dart_api_impl.cc
File vm/dart_api_impl.cc (right):

https://chromiumcodereview.appspot.com/9614006/diff/1/vm/dart_api_impl.cc#new...
vm/dart_api_impl.cc:2025:
Library::Handle(isolate->object_store()->builtin_library());
On 2012/03/07 18:32:17, asiva wrote:
> if (builtin.IsNull()) {
>   return Api::NewError(".......");
> }

Discussed offline.

Powered by Google App Engine
This is Rietveld 408576698