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

Side by Side Diff: src/factory.cc

Issue 7152002: Change the representation of catch contexts. (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 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 Handle<Context> Factory::NewFunctionContext(int length, 243 Handle<Context> Factory::NewFunctionContext(int length,
244 Handle<JSFunction> closure) { 244 Handle<JSFunction> closure) {
245 CALL_HEAP_FUNCTION( 245 CALL_HEAP_FUNCTION(
246 isolate(), 246 isolate(),
247 isolate()->heap()->AllocateFunctionContext(length, *closure), 247 isolate()->heap()->AllocateFunctionContext(length, *closure),
248 Context); 248 Context);
249 } 249 }
250 250
251 251
252 Handle<Context> Factory::NewCatchContext(Handle<Context> previous, 252 Handle<Context> Factory::NewCatchContext(Handle<Context> previous,
253 Handle<JSObject> extension) { 253 Handle<String> name,
254 Handle<Object> thrown_object) {
254 CALL_HEAP_FUNCTION( 255 CALL_HEAP_FUNCTION(
255 isolate(), 256 isolate(),
256 isolate()->heap()->AllocateCatchContext(*previous, *extension), 257 isolate()->heap()->AllocateCatchContext(*previous, *name, *thrown_object),
257 Context); 258 Context);
258 } 259 }
259 260
260 261
261 Handle<Context> Factory::NewWithContext(Handle<Context> previous, 262 Handle<Context> Factory::NewWithContext(Handle<Context> previous,
262 Handle<JSObject> extension) { 263 Handle<JSObject> extension) {
263 CALL_HEAP_FUNCTION( 264 CALL_HEAP_FUNCTION(
264 isolate(), 265 isolate(),
265 isolate()->heap()->AllocateWithContext(*previous, *extension), 266 isolate()->heap()->AllocateWithContext(*previous, *extension),
266 Context); 267 Context);
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 Execution::ConfigureInstance(instance, 1230 Execution::ConfigureInstance(instance,
1230 instance_template, 1231 instance_template,
1231 pending_exception); 1232 pending_exception);
1232 } else { 1233 } else {
1233 *pending_exception = false; 1234 *pending_exception = false;
1234 } 1235 }
1235 } 1236 }
1236 1237
1237 1238
1238 } } // namespace v8::internal 1239 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698