| OLD | NEW |
| 1 // Copyright 2011 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 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 // Create a global (but otherwise uninitialized) context. | 145 // Create a global (but otherwise uninitialized) context. |
| 146 Handle<Context> NewGlobalContext(); | 146 Handle<Context> NewGlobalContext(); |
| 147 | 147 |
| 148 // Create a function context. | 148 // Create a function context. |
| 149 Handle<Context> NewFunctionContext(int length, | 149 Handle<Context> NewFunctionContext(int length, |
| 150 Handle<JSFunction> closure); | 150 Handle<JSFunction> closure); |
| 151 | 151 |
| 152 // Create a catch context. | 152 // Create a catch context. |
| 153 Handle<Context> NewCatchContext(Handle<Context> previous, | 153 Handle<Context> NewCatchContext(Handle<Context> previous, |
| 154 Handle<String> name, | 154 Handle<JSObject> extension); |
| 155 Handle<Object> thrown_object); | |
| 156 | 155 |
| 157 // Create a 'with' context. | 156 // Create a 'with' context. |
| 158 Handle<Context> NewWithContext(Handle<Context> previous, | 157 Handle<Context> NewWithContext(Handle<Context> previous, |
| 159 Handle<JSObject> extension); | 158 Handle<JSObject> extension); |
| 160 | 159 |
| 161 // Return the Symbol matching the passed in string. | 160 // Return the Symbol matching the passed in string. |
| 162 Handle<String> SymbolFromString(Handle<String> value); | 161 Handle<String> SymbolFromString(Handle<String> value); |
| 163 | 162 |
| 164 // Allocate a new struct. The struct is pretenured (allocated directly in | 163 // Allocate a new struct. The struct is pretenured (allocated directly in |
| 165 // the old generation). | 164 // the old generation). |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 // Update the map cache in the global context with (keys, map) | 441 // Update the map cache in the global context with (keys, map) |
| 443 Handle<MapCache> AddToMapCache(Handle<Context> context, | 442 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 444 Handle<FixedArray> keys, | 443 Handle<FixedArray> keys, |
| 445 Handle<Map> map); | 444 Handle<Map> map); |
| 446 }; | 445 }; |
| 447 | 446 |
| 448 | 447 |
| 449 } } // namespace v8::internal | 448 } } // namespace v8::internal |
| 450 | 449 |
| 451 #endif // V8_FACTORY_H_ | 450 #endif // V8_FACTORY_H_ |
| OLD | NEW |