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

Side by Side Diff: src/factory.h

Issue 238263003: Reland r20772 "Handlifying clients of StringTable, step 1." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: The fix 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 | « no previous file | src/factory.cc » ('j') | src/heap.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 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "isolate.h" 8 #include "isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 // Interface for handle based allocation. 13 // Interface for handle based allocation.
14 14
15 class Factory V8_FINAL { 15 class Factory V8_FINAL {
16 public: 16 public:
17 Handle<Oddball> NewOddball(Handle<Map> map,
18 const char* to_string,
19 Handle<Object> to_number,
20 byte kind);
21
17 // Allocates a fixed array initialized with undefined values. 22 // Allocates a fixed array initialized with undefined values.
18 Handle<FixedArray> NewFixedArray( 23 Handle<FixedArray> NewFixedArray(
19 int size, 24 int size,
20 PretenureFlag pretenure = NOT_TENURED); 25 PretenureFlag pretenure = NOT_TENURED);
21 26
22 // Allocate a new fixed array with non-existing entries (the hole). 27 // Allocate a new fixed array with non-existing entries (the hole).
23 Handle<FixedArray> NewFixedArrayWithHoles( 28 Handle<FixedArray> NewFixedArrayWithHoles(
24 int size, 29 int size,
25 PretenureFlag pretenure = NOT_TENURED); 30 PretenureFlag pretenure = NOT_TENURED);
26 31
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 643
639 // Update the map cache in the native context with (keys, map) 644 // Update the map cache in the native context with (keys, map)
640 Handle<MapCache> AddToMapCache(Handle<Context> context, 645 Handle<MapCache> AddToMapCache(Handle<Context> context,
641 Handle<FixedArray> keys, 646 Handle<FixedArray> keys,
642 Handle<Map> map); 647 Handle<Map> map);
643 }; 648 };
644 649
645 } } // namespace v8::internal 650 } } // namespace v8::internal
646 651
647 #endif // V8_FACTORY_H_ 652 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698