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

Side by Side Diff: src/runtime/runtime-regexp.cc

Issue 713223002: Abstract string building in JSON-stringifier into IncrementalStringBuilder. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | « src/json-stringifier.h ('k') | src/runtime/runtime-strings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/jsregexp-inl.h" 8 #include "src/jsregexp-inl.h"
9 #include "src/jsregexp.h" 9 #include "src/jsregexp.h"
10 #include "src/runtime/runtime-utils.h" 10 #include "src/runtime/runtime-utils.h"
11 #include "src/runtime/string-builder.h" 11 #include "src/string-builder.h"
12 #include "src/string-search.h" 12 #include "src/string-search.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 class CompiledReplacement { 17 class CompiledReplacement {
18 public: 18 public:
19 explicit CompiledReplacement(Zone* zone) 19 explicit CompiledReplacement(Zone* zone)
20 : parts_(1, zone), replacement_substrings_(0, zone), zone_(zone) {} 20 : parts_(1, zone), replacement_substrings_(0, zone), zone_(zone) {}
21 21
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 1088
1089 1089
1090 RUNTIME_FUNCTION(RuntimeReference_IsRegExp) { 1090 RUNTIME_FUNCTION(RuntimeReference_IsRegExp) {
1091 SealHandleScope shs(isolate); 1091 SealHandleScope shs(isolate);
1092 DCHECK(args.length() == 1); 1092 DCHECK(args.length() == 1);
1093 CONVERT_ARG_CHECKED(Object, obj, 0); 1093 CONVERT_ARG_CHECKED(Object, obj, 0);
1094 return isolate->heap()->ToBoolean(obj->IsJSRegExp()); 1094 return isolate->heap()->ToBoolean(obj->IsJSRegExp());
1095 } 1095 }
1096 } 1096 }
1097 } // namespace v8::internal 1097 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/json-stringifier.h ('k') | src/runtime/runtime-strings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698