| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |