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

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

Issue 1010673004: Tweak the TurboFan pipeline for stub compilation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed feedback Created 5 years, 9 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
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | test/cctest/compiler/test-run-stubs.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"
(...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 if (!args[1]->IsNumber()) return isolate->heap()->undefined_value(); 1294 if (!args[1]->IsNumber()) return isolate->heap()->undefined_value();
1295 if (std::isinf(args.number_at(1))) return isolate->heap()->nan_value(); 1295 if (std::isinf(args.number_at(1))) return isolate->heap()->nan_value();
1296 return __RT_impl_Runtime_StringCharCodeAtRT(args, isolate); 1296 return __RT_impl_Runtime_StringCharCodeAtRT(args, isolate);
1297 } 1297 }
1298 1298
1299 1299
1300 RUNTIME_FUNCTION(Runtime_IsStringWrapperSafeForDefaultValueOf) { 1300 RUNTIME_FUNCTION(Runtime_IsStringWrapperSafeForDefaultValueOf) {
1301 UNIMPLEMENTED(); 1301 UNIMPLEMENTED();
1302 return NULL; 1302 return NULL;
1303 } 1303 }
1304
1305
1306 RUNTIME_FUNCTION(Runtime_StringGetLength) {
1307 HandleScope scope(isolate);
1308 DCHECK(args.length() == 1);
1309 CONVERT_ARG_HANDLE_CHECKED(String, s, 0);
1310 return Smi::FromInt(s->length());
1311 }
1304 } 1312 }
1305 } // namespace v8::internal 1313 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | test/cctest/compiler/test-run-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698