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

Unified Diff: runtime/vm/object.h

Issue 1933933002: Use a reusable handle in SubString instead of creating one as this path is now used when creating S… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: pass-thread Created 4 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
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 902ea91ed2b0515e3ffa8464f4976bc26a5b3e70..cda05e9faeb16ea3288f26f943a13d7ca6d0dba6 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -6575,6 +6575,13 @@ class String : public Instance {
static RawString* SubString(const String& str,
intptr_t begin_index,
intptr_t length,
+ Heap::Space space = Heap::kNew) {
+ return SubString(Thread::Current(), str, begin_index, length, space);
+ }
+ static RawString* SubString(Thread* thread,
+ const String& str,
+ intptr_t begin_index,
+ intptr_t length,
Heap::Space space = Heap::kNew);
static RawString* Transform(int32_t (*mapping)(int32_t ch),
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698