| 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 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1858     DataDescriptor field(factory->lastIndex_string(), |  1858     DataDescriptor field(factory->lastIndex_string(), | 
|  1859                          JSRegExp::kLastIndexFieldIndex, writable, |  1859                          JSRegExp::kLastIndexFieldIndex, writable, | 
|  1860                          Representation::Tagged()); |  1860                          Representation::Tagged()); | 
|  1861     initial_map->AppendDescriptor(&field); |  1861     initial_map->AppendDescriptor(&field); | 
|  1862  |  1862  | 
|  1863     static const int num_fields = JSRegExp::kInObjectFieldCount; |  1863     static const int num_fields = JSRegExp::kInObjectFieldCount; | 
|  1864     initial_map->SetInObjectProperties(num_fields); |  1864     initial_map->SetInObjectProperties(num_fields); | 
|  1865     initial_map->set_unused_property_fields(0); |  1865     initial_map->set_unused_property_fields(0); | 
|  1866     initial_map->set_instance_size(initial_map->instance_size() + |  1866     initial_map->set_instance_size(initial_map->instance_size() + | 
|  1867                                    num_fields * kPointerSize); |  1867                                    num_fields * kPointerSize); | 
 |  1868  | 
 |  1869     {  // Internal: RegExpInternalMatch | 
 |  1870       Handle<JSFunction> function = | 
 |  1871           factory->NewFunction(isolate->factory()->empty_string(), | 
 |  1872                                isolate->builtins()->RegExpInternalMatch(), | 
 |  1873                                JS_OBJECT_TYPE, JSObject::kHeaderSize); | 
 |  1874       function->shared()->set_internal_formal_parameter_count(2); | 
 |  1875       function->shared()->set_length(2); | 
 |  1876       function->shared()->set_native(true); | 
 |  1877       isolate->native_context()->set(Context::REGEXP_INTERNAL_MATCH, *function); | 
 |  1878     } | 
|  1868   } |  1879   } | 
|  1869  |  1880  | 
|  1870   {  // -- E r r o r |  1881   {  // -- E r r o r | 
|  1871     InstallError(isolate, global, factory->Error_string(), |  1882     InstallError(isolate, global, factory->Error_string(), | 
|  1872                  Context::ERROR_FUNCTION_INDEX); |  1883                  Context::ERROR_FUNCTION_INDEX); | 
|  1873     InstallMakeError(isolate, isolate->builtins()->MakeError(), |  1884     InstallMakeError(isolate, isolate->builtins()->MakeError(), | 
|  1874                      Context::MAKE_ERROR_INDEX); |  1885                      Context::MAKE_ERROR_INDEX); | 
|  1875   } |  1886   } | 
|  1876  |  1887  | 
|  1877   {  // -- E v a l E r r o r |  1888   {  // -- E v a l E r r o r | 
| (...skipping 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  4433 } |  4444 } | 
|  4434  |  4445  | 
|  4435  |  4446  | 
|  4436 // Called when the top-level V8 mutex is destroyed. |  4447 // Called when the top-level V8 mutex is destroyed. | 
|  4437 void Bootstrapper::FreeThreadResources() { |  4448 void Bootstrapper::FreeThreadResources() { | 
|  4438   DCHECK(!IsActive()); |  4449   DCHECK(!IsActive()); | 
|  4439 } |  4450 } | 
|  4440  |  4451  | 
|  4441 }  // namespace internal |  4452 }  // namespace internal | 
|  4442 }  // namespace v8 |  4453 }  // namespace v8 | 
| OLD | NEW |