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

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: Address comments. 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..045eb0de181419f63be897ec3be14cc49e407e1b 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -5495,6 +5495,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