| 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/factory.h" | 5 #include "src/factory.h" | 
| 6 | 6 | 
| 7 #include "src/allocation-site-scopes.h" | 7 #include "src/allocation-site-scopes.h" | 
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" | 
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" | 
| 10 #include "src/conversions.h" | 10 #include "src/conversions.h" | 
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 861 | 861 | 
| 862 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( | 862 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( | 
| 863     int aliased_context_slot) { | 863     int aliased_context_slot) { | 
| 864   Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast( | 864   Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast( | 
| 865       NewStruct(ALIASED_ARGUMENTS_ENTRY_TYPE)); | 865       NewStruct(ALIASED_ARGUMENTS_ENTRY_TYPE)); | 
| 866   entry->set_aliased_context_slot(aliased_context_slot); | 866   entry->set_aliased_context_slot(aliased_context_slot); | 
| 867   return entry; | 867   return entry; | 
| 868 } | 868 } | 
| 869 | 869 | 
| 870 | 870 | 
| 871 Handle<ExecutableAccessorInfo> Factory::NewExecutableAccessorInfo() { | 871 Handle<AccessorInfo> Factory::NewAccessorInfo() { | 
| 872   Handle<ExecutableAccessorInfo> info = | 872   Handle<AccessorInfo> info = | 
| 873       Handle<ExecutableAccessorInfo>::cast( | 873       Handle<AccessorInfo>::cast(NewStruct(ACCESSOR_INFO_TYPE)); | 
| 874           NewStruct(EXECUTABLE_ACCESSOR_INFO_TYPE)); |  | 
| 875   info->set_flag(0);  // Must clear the flag, it was initialized as undefined. | 874   info->set_flag(0);  // Must clear the flag, it was initialized as undefined. | 
| 876   return info; | 875   return info; | 
| 877 } | 876 } | 
| 878 | 877 | 
| 879 | 878 | 
| 880 Handle<Script> Factory::NewScript(Handle<String> source) { | 879 Handle<Script> Factory::NewScript(Handle<String> source) { | 
| 881   // Create and initialize script object. | 880   // Create and initialize script object. | 
| 882   Heap* heap = isolate()->heap(); | 881   Heap* heap = isolate()->heap(); | 
| 883   Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); | 882   Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); | 
| 884   script->set_source(*source); | 883   script->set_source(*source); | 
| (...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2397 } | 2396 } | 
| 2398 | 2397 | 
| 2399 | 2398 | 
| 2400 Handle<Object> Factory::ToBoolean(bool value) { | 2399 Handle<Object> Factory::ToBoolean(bool value) { | 
| 2401   return value ? true_value() : false_value(); | 2400   return value ? true_value() : false_value(); | 
| 2402 } | 2401 } | 
| 2403 | 2402 | 
| 2404 | 2403 | 
| 2405 }  // namespace internal | 2404 }  // namespace internal | 
| 2406 }  // namespace v8 | 2405 }  // namespace v8 | 
| OLD | NEW | 
|---|