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

Side by Side Diff: runtime/vm/object.cc

Issue 1303923002: Remove new space allocation in optimizing compiler, use Symbols::FromConcat where appropriate (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Optimize Symbols::FromConcat Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 7136 matching lines...) Expand 10 before | Expand all | Expand 10 after
7147 return "RedirectionData class"; 7147 return "RedirectionData class";
7148 } 7148 }
7149 7149
7150 7150
7151 void RedirectionData::PrintJSONImpl(JSONStream* stream, bool ref) const { 7151 void RedirectionData::PrintJSONImpl(JSONStream* stream, bool ref) const {
7152 Object::PrintJSONImpl(stream, ref); 7152 Object::PrintJSONImpl(stream, ref);
7153 } 7153 }
7154 7154
7155 7155
7156 RawString* Field::GetterName(const String& field_name) { 7156 RawString* Field::GetterName(const String& field_name) {
7157 return String::Concat(Symbols::GetterPrefix(), field_name); 7157 return Field::GetterSymbol(field_name);
7158 } 7158 }
7159 7159
7160 7160
7161 RawString* Field::GetterSymbol(const String& field_name) { 7161 RawString* Field::GetterSymbol(const String& field_name) {
7162 return Symbols::FromConcat(Symbols::GetterPrefix(), field_name); 7162 return Symbols::FromConcat(Symbols::GetterPrefix(), field_name);
7163 } 7163 }
7164 7164
7165 7165
7166 RawString* Field::SetterName(const String& field_name) { 7166 RawString* Field::SetterName(const String& field_name) {
7167 return String::Concat(Symbols::SetterPrefix(), field_name); 7167 return String::Concat(Symbols::SetterPrefix(), field_name);
(...skipping 14247 matching lines...) Expand 10 before | Expand all | Expand 10 after
21415 return tag_label.ToCString(); 21415 return tag_label.ToCString();
21416 } 21416 }
21417 21417
21418 21418
21419 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 21419 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
21420 Instance::PrintJSONImpl(stream, ref); 21420 Instance::PrintJSONImpl(stream, ref);
21421 } 21421 }
21422 21422
21423 21423
21424 } // namespace dart 21424 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698