OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 // Create a global (but otherwise uninitialized) context. | 120 // Create a global (but otherwise uninitialized) context. |
121 static Handle<Context> NewGlobalContext(); | 121 static Handle<Context> NewGlobalContext(); |
122 | 122 |
123 // Create a function context. | 123 // Create a function context. |
124 static Handle<Context> NewFunctionContext(int length, | 124 static Handle<Context> NewFunctionContext(int length, |
125 Handle<JSFunction> closure); | 125 Handle<JSFunction> closure); |
126 | 126 |
127 // Create a 'with' context. | 127 // Create a 'with' context. |
128 static Handle<Context> NewWithContext(Handle<Context> previous, | 128 static Handle<Context> NewWithContext(Handle<Context> previous, |
129 Handle<JSObject> extension); | 129 Handle<JSObject> extension, |
| 130 bool is_catch_context); |
130 | 131 |
131 // Return the Symbol maching the passed in string. | 132 // Return the Symbol maching the passed in string. |
132 static Handle<String> SymbolFromString(Handle<String> value); | 133 static Handle<String> SymbolFromString(Handle<String> value); |
133 | 134 |
134 // Allocate a new struct. The struct is pretenured (allocated directly in | 135 // Allocate a new struct. The struct is pretenured (allocated directly in |
135 // the old generation). | 136 // the old generation). |
136 static Handle<Struct> NewStruct(InstanceType type); | 137 static Handle<Struct> NewStruct(InstanceType type); |
137 | 138 |
138 static Handle<AccessorInfo> NewAccessorInfo(); | 139 static Handle<AccessorInfo> NewAccessorInfo(); |
139 | 140 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 // Update the map cache in the global context with (keys, map) | 348 // Update the map cache in the global context with (keys, map) |
348 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 349 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
349 Handle<FixedArray> keys, | 350 Handle<FixedArray> keys, |
350 Handle<Map> map); | 351 Handle<Map> map); |
351 }; | 352 }; |
352 | 353 |
353 | 354 |
354 } } // namespace v8::internal | 355 } } // namespace v8::internal |
355 | 356 |
356 #endif // V8_FACTORY_H_ | 357 #endif // V8_FACTORY_H_ |
OLD | NEW |