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