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

Issue 11411204: When externalizing a string ensure that the basic tag bits are preserved. (Closed)

Created:
8 years ago by siva
Modified:
8 years ago
Reviewers:
Anton Muhin, cshapiro
CC:
reviews_dartlang.org
Visibility:
Public.

Description

When externalizing a string ensure that the basic tag bits are preserved. Also make sure we do not try to externalize read only strings that are in the VM isolate. Committed: https://code.google.com/p/dart/source/detail?r=15553

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M runtime/vm/dart_api_impl.cc View 1 2 1 chunk +4 lines, -0 lines 1 comment Download
M runtime/vm/object.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
siva
8 years ago (2012-11-29 19:05:27 UTC) #1
cshapiro
lgtm with comments https://codereview.chromium.org/11411204/diff/3001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://codereview.chromium.org/11411204/diff/3001/runtime/vm/dart_api_impl.cc#newcode1753 runtime/vm/dart_api_impl.cc:1753: if (vm_isolate_heap->Contains(reinterpret_cast<uword>(str_obj.raw()))) { Is this the ...
8 years ago (2012-11-29 21:03:12 UTC) #2
siva
https://codereview.chromium.org/11411204/diff/3001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://codereview.chromium.org/11411204/diff/3001/runtime/vm/dart_api_impl.cc#newcode1753 runtime/vm/dart_api_impl.cc:1753: if (vm_isolate_heap->Contains(reinterpret_cast<uword>(str_obj.raw()))) { My initial thought was strings in ...
8 years ago (2012-11-29 22:37:39 UTC) #3
Anton Muhin
8 years ago (2012-11-30 21:37:45 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/11411204/diff/7001/runtime/vm/dart_api_impl.cc
File runtime/vm/dart_api_impl.cc (right):

https://codereview.chromium.org/11411204/diff/7001/runtime/vm/dart_api_impl.c...
runtime/vm/dart_api_impl.cc:1754: "cannot externalize a read-only string.");
might be worth clarifying what's the difference between immutable and read-only
:)

Powered by Google App Engine
This is Rietveld 408576698