| 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 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1342 return NULL; | 1342 return NULL; |
| 1343 } | 1343 } |
| 1344 | 1344 |
| 1345 | 1345 |
| 1346 RUNTIME_FUNCTION(Runtime_StringGetLength) { | 1346 RUNTIME_FUNCTION(Runtime_StringGetLength) { |
| 1347 HandleScope scope(isolate); | 1347 HandleScope scope(isolate); |
| 1348 DCHECK(args.length() == 1); | 1348 DCHECK(args.length() == 1); |
| 1349 CONVERT_ARG_HANDLE_CHECKED(String, s, 0); | 1349 CONVERT_ARG_HANDLE_CHECKED(String, s, 0); |
| 1350 return Smi::FromInt(s->length()); | 1350 return Smi::FromInt(s->length()); |
| 1351 } | 1351 } |
| 1352 } | 1352 } // namespace internal |
| 1353 } // namespace v8::internal | 1353 } // namespace v8 |
| OLD | NEW |