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

Side by Side Diff: src/factory.cc

Issue 239203003: Handlify CodeCache. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CR feedback Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/factory.h ('k') | src/objects.h » ('j') | src/objects.cc » ('J')
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 "factory.h" 5 #include "factory.h"
6 6
7 #include "isolate-inl.h" 7 #include "isolate-inl.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 687
688 688
689 Handle<Struct> Factory::NewStruct(InstanceType type) { 689 Handle<Struct> Factory::NewStruct(InstanceType type) {
690 CALL_HEAP_FUNCTION( 690 CALL_HEAP_FUNCTION(
691 isolate(), 691 isolate(),
692 isolate()->heap()->AllocateStruct(type), 692 isolate()->heap()->AllocateStruct(type),
693 Struct); 693 Struct);
694 } 694 }
695 695
696 696
697 Handle<CodeCache> Factory::NewCodeCache() {
698 CALL_HEAP_FUNCTION(
699 isolate(),
700 isolate()->heap()->AllocateCodeCache(),
701 CodeCache);
702 }
703
704
697 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry( 705 Handle<AliasedArgumentsEntry> Factory::NewAliasedArgumentsEntry(
698 int aliased_context_slot) { 706 int aliased_context_slot) {
699 Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast( 707 Handle<AliasedArgumentsEntry> entry = Handle<AliasedArgumentsEntry>::cast(
700 NewStruct(ALIASED_ARGUMENTS_ENTRY_TYPE)); 708 NewStruct(ALIASED_ARGUMENTS_ENTRY_TYPE));
701 entry->set_aliased_context_slot(aliased_context_slot); 709 entry->set_aliased_context_slot(aliased_context_slot);
702 return entry; 710 return entry;
703 } 711 }
704 712
705 713
706 Handle<DeclaredAccessorDescriptor> Factory::NewDeclaredAccessorDescriptor() { 714 Handle<DeclaredAccessorDescriptor> Factory::NewDeclaredAccessorDescriptor() {
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
2097 if (String::Equals(name, infinity_string())) return infinity_value(); 2105 if (String::Equals(name, infinity_string())) return infinity_value();
2098 return Handle<Object>::null(); 2106 return Handle<Object>::null();
2099 } 2107 }
2100 2108
2101 2109
2102 Handle<Object> Factory::ToBoolean(bool value) { 2110 Handle<Object> Factory::ToBoolean(bool value) {
2103 return value ? true_value() : false_value(); 2111 return value ? true_value() : false_value();
2104 } 2112 }
2105 2113
2106 } } // namespace v8::internal 2114 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/objects.h » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698