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

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

Issue 598913004: Split more runtime functions into seperate files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « src/runtime/runtime-numbers.cc ('k') | src/runtime/runtime-test.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.h" 10 #include "src/runtime/runtime.h"
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 // This is slightly convoluted because the value that signifies 1175 // This is slightly convoluted because the value that signifies
1176 // equality is 0 and inequality is 1 so we have to negate the result 1176 // equality is 0 and inequality is 1 so we have to negate the result
1177 // from String::Equals. 1177 // from String::Equals.
1178 DCHECK(not_equal == 0 || not_equal == 1); 1178 DCHECK(not_equal == 0 || not_equal == 1);
1179 STATIC_ASSERT(EQUAL == 0); 1179 STATIC_ASSERT(EQUAL == 0);
1180 STATIC_ASSERT(NOT_EQUAL == 1); 1180 STATIC_ASSERT(NOT_EQUAL == 1);
1181 return Smi::FromInt(not_equal); 1181 return Smi::FromInt(not_equal);
1182 } 1182 }
1183 1183
1184 1184
1185 RUNTIME_FUNCTION(Runtime_FlattenString) {
1186 HandleScope scope(isolate);
1187 DCHECK(args.length() == 1);
1188 CONVERT_ARG_HANDLE_CHECKED(String, str, 0);
1189 return *String::Flatten(str);
1190 }
1191
1192
1185 RUNTIME_FUNCTION(RuntimeReference_StringCharFromCode) { 1193 RUNTIME_FUNCTION(RuntimeReference_StringCharFromCode) {
1186 SealHandleScope shs(isolate); 1194 SealHandleScope shs(isolate);
1187 return __RT_impl_Runtime_CharFromCode(args, isolate); 1195 return __RT_impl_Runtime_CharFromCode(args, isolate);
1188 } 1196 }
1189 1197
1190 1198
1191 RUNTIME_FUNCTION(RuntimeReference_StringCharAt) { 1199 RUNTIME_FUNCTION(RuntimeReference_StringCharAt) {
1192 SealHandleScope shs(isolate); 1200 SealHandleScope shs(isolate);
1193 DCHECK(args.length() == 2); 1201 DCHECK(args.length() == 2);
1194 if (!args[0]->IsString()) return Smi::FromInt(0); 1202 if (!args[0]->IsString()) return Smi::FromInt(0);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 return __RT_impl_Runtime_SubString(args, isolate); 1251 return __RT_impl_Runtime_SubString(args, isolate);
1244 } 1252 }
1245 1253
1246 1254
1247 RUNTIME_FUNCTION(RuntimeReference_StringAdd) { 1255 RUNTIME_FUNCTION(RuntimeReference_StringAdd) {
1248 SealHandleScope shs(isolate); 1256 SealHandleScope shs(isolate);
1249 return __RT_impl_Runtime_StringAdd(args, isolate); 1257 return __RT_impl_Runtime_StringAdd(args, isolate);
1250 } 1258 }
1251 } 1259 }
1252 } // namespace v8::internal 1260 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime-numbers.cc ('k') | src/runtime/runtime-test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698