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

Unified Diff: runtime/vm/object.h

Issue 368483004: Avoid unnecessary copying when parsing doubles. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also use the native parse directly in JSON parsing. Created 6 years, 6 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/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 7eee7301144974673bc71d31f26f867436d89c7b..607ee3a0bd27c549b8d446b2429621ae7669f1ec 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2751,6 +2751,7 @@ class Library : public Object {
static void InitNativeWrappersLibrary(Isolate* isolate);
static RawLibrary* AsyncLibrary();
+ static RawLibrary* ConvertLibrary();
static RawLibrary* CoreLibrary();
static RawLibrary* CollectionLibrary();
static RawLibrary* InternalLibrary();
@@ -5495,6 +5496,11 @@ class String : public Instance {
PRINTF_ATTRIBUTE(1, 2);
static RawString* NewFormattedV(const char* format, va_list args);
+ static bool ParseDouble(const String& str,
+ intptr_t start,
+ intptr_t end,
+ double* result);
+
protected:
bool HasHash() const {
ASSERT(Smi::New(0) == NULL);

Powered by Google App Engine
This is Rietveld 408576698