| 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/bootstrapper.h" | 5 #include "src/bootstrapper.h" | 
| 6 | 6 | 
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" | 
| 8 #include "src/api-natives.h" | 8 #include "src/api-natives.h" | 
| 9 #include "src/base/ieee754.h" | 9 #include "src/base/ieee754.h" | 
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" | 
| (...skipping 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2279       { | 2279       { | 
| 2280         Handle<JSFunction> fun = SimpleCreateFunction( | 2280         Handle<JSFunction> fun = SimpleCreateFunction( | 
| 2281             isolate, factory->InternalizeUtf8String("[Symbol.match]"), | 2281             isolate, factory->InternalizeUtf8String("[Symbol.match]"), | 
| 2282             Builtins::kRegExpPrototypeMatch, 1, true); | 2282             Builtins::kRegExpPrototypeMatch, 1, true); | 
| 2283         InstallFunction(prototype, fun, factory->match_symbol(), DONT_ENUM); | 2283         InstallFunction(prototype, fun, factory->match_symbol(), DONT_ENUM); | 
| 2284       } | 2284       } | 
| 2285 | 2285 | 
| 2286       { | 2286       { | 
| 2287         Handle<JSFunction> fun = SimpleCreateFunction( | 2287         Handle<JSFunction> fun = SimpleCreateFunction( | 
| 2288             isolate, factory->InternalizeUtf8String("[Symbol.replace]"), | 2288             isolate, factory->InternalizeUtf8String("[Symbol.replace]"), | 
| 2289             Builtins::kRegExpPrototypeReplace, 2, true); | 2289             Builtins::kRegExpPrototypeReplace, 2, false); | 
| 2290         InstallFunction(prototype, fun, factory->replace_symbol(), DONT_ENUM); | 2290         InstallFunction(prototype, fun, factory->replace_symbol(), DONT_ENUM); | 
| 2291       } | 2291       } | 
| 2292 | 2292 | 
| 2293       { | 2293       { | 
| 2294         Handle<JSFunction> fun = SimpleCreateFunction( | 2294         Handle<JSFunction> fun = SimpleCreateFunction( | 
| 2295             isolate, factory->InternalizeUtf8String("[Symbol.search]"), | 2295             isolate, factory->InternalizeUtf8String("[Symbol.search]"), | 
| 2296             Builtins::kRegExpPrototypeSearch, 1, true); | 2296             Builtins::kRegExpPrototypeSearch, 1, true); | 
| 2297         InstallFunction(prototype, fun, factory->search_symbol(), DONT_ENUM); | 2297         InstallFunction(prototype, fun, factory->search_symbol(), DONT_ENUM); | 
| 2298       } | 2298       } | 
| 2299 | 2299 | 
| 2300       { | 2300       { | 
| 2301         Handle<JSFunction> fun = SimpleCreateFunction( | 2301         Handle<JSFunction> fun = SimpleCreateFunction( | 
| 2302             isolate, factory->InternalizeUtf8String("[Symbol.split]"), | 2302             isolate, factory->InternalizeUtf8String("[Symbol.split]"), | 
| 2303             Builtins::kRegExpPrototypeSplit, 2, true); | 2303             Builtins::kRegExpPrototypeSplit, 2, false); | 
| 2304         InstallFunction(prototype, fun, factory->split_symbol(), DONT_ENUM); | 2304         InstallFunction(prototype, fun, factory->split_symbol(), DONT_ENUM); | 
| 2305       } | 2305       } | 
| 2306 | 2306 | 
| 2307       Handle<Map> prototype_map(prototype->map()); | 2307       Handle<Map> prototype_map(prototype->map()); | 
| 2308       Map::SetShouldBeFastPrototypeMap(prototype_map, true, isolate); | 2308       Map::SetShouldBeFastPrototypeMap(prototype_map, true, isolate); | 
| 2309 | 2309 | 
| 2310       // Store the initial RegExp.prototype map. This is used in fast-path | 2310       // Store the initial RegExp.prototype map. This is used in fast-path | 
| 2311       // checks. Do not alter the prototype after this point. | 2311       // checks. Do not alter the prototype after this point. | 
| 2312       native_context()->set_regexp_prototype_map(*prototype_map); | 2312       native_context()->set_regexp_prototype_map(*prototype_map); | 
| 2313     } | 2313     } | 
| (...skipping 2967 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5281 } | 5281 } | 
| 5282 | 5282 | 
| 5283 | 5283 | 
| 5284 // Called when the top-level V8 mutex is destroyed. | 5284 // Called when the top-level V8 mutex is destroyed. | 
| 5285 void Bootstrapper::FreeThreadResources() { | 5285 void Bootstrapper::FreeThreadResources() { | 
| 5286   DCHECK(!IsActive()); | 5286   DCHECK(!IsActive()); | 
| 5287 } | 5287 } | 
| 5288 | 5288 | 
| 5289 }  // namespace internal | 5289 }  // namespace internal | 
| 5290 }  // namespace v8 | 5290 }  // namespace v8 | 
| OLD | NEW | 
|---|