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

Side by Side Diff: src/factory.h

Issue 7003058: A collection of context-related refactoring changes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
11 // with the distribution. 11 // with the distribution.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 Handle<String> NewExternalStringFromTwoByte( 137 Handle<String> NewExternalStringFromTwoByte(
138 ExternalTwoByteString::Resource* resource); 138 ExternalTwoByteString::Resource* resource);
139 139
140 // Create a global (but otherwise uninitialized) context. 140 // Create a global (but otherwise uninitialized) context.
141 Handle<Context> NewGlobalContext(); 141 Handle<Context> NewGlobalContext();
142 142
143 // Create a function context. 143 // Create a function context.
144 Handle<Context> NewFunctionContext(int length, 144 Handle<Context> NewFunctionContext(int length,
145 Handle<JSFunction> closure); 145 Handle<JSFunction> closure);
146 146
147 // Create a catch context.
148 Handle<Context> NewCatchContext(Handle<Context> previous,
149 Handle<JSObject> extension);
150
147 // Create a 'with' context. 151 // Create a 'with' context.
148 Handle<Context> NewWithContext(Handle<Context> previous, 152 Handle<Context> NewWithContext(Handle<Context> previous,
149 Handle<JSObject> extension, 153 Handle<JSObject> extension);
150 bool is_catch_context);
151 154
152 // Return the Symbol matching the passed in string. 155 // Return the Symbol matching the passed in string.
153 Handle<String> SymbolFromString(Handle<String> value); 156 Handle<String> SymbolFromString(Handle<String> value);
154 157
155 // Allocate a new struct. The struct is pretenured (allocated directly in 158 // Allocate a new struct. The struct is pretenured (allocated directly in
156 // the old generation). 159 // the old generation).
157 Handle<Struct> NewStruct(InstanceType type); 160 Handle<Struct> NewStruct(InstanceType type);
158 161
159 Handle<AccessorInfo> NewAccessorInfo(); 162 Handle<AccessorInfo> NewAccessorInfo();
160 163
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // Update the map cache in the global context with (keys, map) 436 // Update the map cache in the global context with (keys, map)
434 Handle<MapCache> AddToMapCache(Handle<Context> context, 437 Handle<MapCache> AddToMapCache(Handle<Context> context,
435 Handle<FixedArray> keys, 438 Handle<FixedArray> keys,
436 Handle<Map> map); 439 Handle<Map> map);
437 }; 440 };
438 441
439 442
440 } } // namespace v8::internal 443 } } // namespace v8::internal
441 444
442 #endif // V8_FACTORY_H_ 445 #endif // V8_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698