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

Unified Diff: runtime/vm/object.h

Issue 1368173002: Do not eagerly finalize when optimizing. Remove allocation of temporary strings in new space. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Improve comments Created 5 years, 3 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 | « runtime/vm/flow_graph_optimizer.cc ('k') | 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 c60e61e2317b26558ccecd5c2062759ee4abf067..d59b78bd7e69f6e232112b6fe88b431ce1e628f8 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -3215,7 +3215,8 @@ class Script : public Object {
void Tokenize(const String& private_key) const;
RawLibrary* FindLibrary() const;
- RawString* GetLine(intptr_t line_number) const;
+ RawString* GetLine(intptr_t line_number,
+ Heap::Space space = Heap::kNew) const;
RawString* GetSnippet(intptr_t from_line,
intptr_t from_column,
intptr_t to_line,
@@ -5408,7 +5409,8 @@ class TypeParameter : public AbstractType {
// bound cannot be checked yet and this is not an error.
bool CheckBound(const AbstractType& bounded_type,
const AbstractType& upper_bound,
- Error* bound_error) const;
+ Error* bound_error,
+ Heap::Space space = Heap::kNew) const;
virtual intptr_t token_pos() const { return raw_ptr()->token_pos_; }
virtual bool IsInstantiated(TrailPtr trail = NULL) const {
return false;
@@ -6186,7 +6188,10 @@ class String : public Instance {
static RawString* NewFormatted(const char* format, ...)
PRINTF_ATTRIBUTE(1, 2);
- static RawString* NewFormattedV(const char* format, va_list args);
+ static RawString* NewFormatted(Heap::Space space, const char* format, ...)
+ PRINTF_ATTRIBUTE(2, 3);
+ static RawString* NewFormattedV(const char* format, va_list args,
+ Heap::Space space = Heap::kNew);
static bool ParseDouble(const String& str,
intptr_t start,
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698