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

Side by Side Diff: src/factory.cc

Issue 7167006: Merge arguments branch to bleeding merge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix test arguments.js." 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
« no previous file with comments | « src/factory.h ('k') | src/full-codegen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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<String> name, 253 Handle<JSObject> extension) {
254 Handle<Object> thrown_object) {
255 CALL_HEAP_FUNCTION( 254 CALL_HEAP_FUNCTION(
256 isolate(), 255 isolate(),
257 isolate()->heap()->AllocateCatchContext(*previous, *name, *thrown_object), 256 isolate()->heap()->AllocateCatchContext(*previous, *extension),
258 Context); 257 Context);
259 } 258 }
260 259
261 260
262 Handle<Context> Factory::NewWithContext(Handle<Context> previous, 261 Handle<Context> Factory::NewWithContext(Handle<Context> previous,
263 Handle<JSObject> extension) { 262 Handle<JSObject> extension) {
264 CALL_HEAP_FUNCTION( 263 CALL_HEAP_FUNCTION(
265 isolate(), 264 isolate(),
266 isolate()->heap()->AllocateWithContext(*previous, *extension), 265 isolate()->heap()->AllocateWithContext(*previous, *extension),
267 Context); 266 Context);
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 Execution::ConfigureInstance(instance, 1229 Execution::ConfigureInstance(instance,
1231 instance_template, 1230 instance_template,
1232 pending_exception); 1231 pending_exception);
1233 } else { 1232 } else {
1234 *pending_exception = false; 1233 *pending_exception = false;
1235 } 1234 }
1236 } 1235 }
1237 1236
1238 1237
1239 } } // namespace v8::internal 1238 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698