Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: src/factory.cc

Issue 1600353003: [runtime] remove left-over distinction between AccessorInfo and ExecutableAccessorInfo (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/factory.h ('k') | src/ic/arm/handler-compiler-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/ic/arm/handler-compiler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698