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

Side by Side Diff: vm/object.h

Issue 10765017: Add quotes around strings when generating source from the token stream. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | vm/object.cc » ('j') | vm/object.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 3201 matching lines...) Expand 10 before | Expand all | Expand 10 after
3212 static void Copy(const String& dst, 3212 static void Copy(const String& dst,
3213 intptr_t dst_offset, 3213 intptr_t dst_offset,
3214 const uint32_t* characters, 3214 const uint32_t* characters,
3215 intptr_t len); 3215 intptr_t len);
3216 static void Copy(const String& dst, 3216 static void Copy(const String& dst,
3217 intptr_t dst_offset, 3217 intptr_t dst_offset,
3218 const String& src, 3218 const String& src,
3219 intptr_t src_offset, 3219 intptr_t src_offset,
3220 intptr_t len); 3220 intptr_t len);
3221 3221
3222 static RawString* EscapeQuotes(const String& str);
cshapiro 2012/07/10 19:03:27 I am confused by this method name, possibly becaus
siva 2012/07/10 22:59:10 I will rename this method to EscapeDoubleQuotes.
3223
3222 static RawString* Concat(const String& str1, 3224 static RawString* Concat(const String& str1,
3223 const String& str2, 3225 const String& str2,
3224 Heap::Space space = Heap::kNew); 3226 Heap::Space space = Heap::kNew);
3225 static RawString* ConcatAll(const Array& strings, 3227 static RawString* ConcatAll(const Array& strings,
3226 Heap::Space space = Heap::kNew); 3228 Heap::Space space = Heap::kNew);
3227 3229
3228 static RawString* SubString(const String& str, 3230 static RawString* SubString(const String& str,
3229 intptr_t begin_index, 3231 intptr_t begin_index,
3230 Heap::Space space = Heap::kNew); 3232 Heap::Space space = Heap::kNew);
3231 static RawString* SubString(const String& str, 3233 static RawString* SubString(const String& str,
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after
5092 } 5094 }
5093 5095
5094 5096
5095 intptr_t Stackmap::SizeInBits() const { 5097 intptr_t Stackmap::SizeInBits() const {
5096 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); 5098 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte);
5097 } 5099 }
5098 5100
5099 } // namespace dart 5101 } // namespace dart
5100 5102
5101 #endif // VM_OBJECT_H_ 5103 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | vm/object.cc » ('j') | vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698