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

Side by Side Diff: src/factory.cc

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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/feedback-slots.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 } 1293 }
1294 1294
1295 1295
1296 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) { 1296 Handle<Code> Factory::CopyCode(Handle<Code> code, Vector<byte> reloc_info) {
1297 CALL_HEAP_FUNCTION(isolate(), 1297 CALL_HEAP_FUNCTION(isolate(),
1298 isolate()->heap()->CopyCode(*code, reloc_info), 1298 isolate()->heap()->CopyCode(*code, reloc_info),
1299 Code); 1299 Code);
1300 } 1300 }
1301 1301
1302 1302
1303 Handle<String> Factory::InternalizedStringFromString(Handle<String> value) {
1304 CALL_HEAP_FUNCTION(isolate(),
1305 isolate()->heap()->InternalizeString(*value), String);
1306 }
1307
1308
1303 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor, 1309 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor,
1304 PretenureFlag pretenure) { 1310 PretenureFlag pretenure) {
1305 JSFunction::EnsureHasInitialMap(constructor); 1311 JSFunction::EnsureHasInitialMap(constructor);
1306 CALL_HEAP_FUNCTION( 1312 CALL_HEAP_FUNCTION(
1307 isolate(), 1313 isolate(),
1308 isolate()->heap()->AllocateJSObject(*constructor, pretenure), JSObject); 1314 isolate()->heap()->AllocateJSObject(*constructor, pretenure), JSObject);
1309 } 1315 }
1310 1316
1311 1317
1312 Handle<JSModule> Factory::NewJSModule(Handle<Context> context, 1318 Handle<JSModule> Factory::NewJSModule(Handle<Context> context,
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 return shared; 1565 return shared;
1560 } 1566 }
1561 1567
1562 1568
1563 Handle<JSMessageObject> Factory::NewJSMessageObject( 1569 Handle<JSMessageObject> Factory::NewJSMessageObject(
1564 Handle<String> type, 1570 Handle<String> type,
1565 Handle<JSArray> arguments, 1571 Handle<JSArray> arguments,
1566 int start_position, 1572 int start_position,
1567 int end_position, 1573 int end_position,
1568 Handle<Object> script, 1574 Handle<Object> script,
1575 Handle<Object> stack_trace,
1569 Handle<Object> stack_frames) { 1576 Handle<Object> stack_frames) {
1570 CALL_HEAP_FUNCTION(isolate(), 1577 CALL_HEAP_FUNCTION(isolate(),
1571 isolate()->heap()->AllocateJSMessageObject(*type, 1578 isolate()->heap()->AllocateJSMessageObject(*type,
1572 *arguments, 1579 *arguments,
1573 start_position, 1580 start_position,
1574 end_position, 1581 end_position,
1575 *script, 1582 *script,
1583 *stack_trace,
1576 *stack_frames), 1584 *stack_frames),
1577 JSMessageObject); 1585 JSMessageObject);
1578 } 1586 }
1579 1587
1580 1588
1581 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { 1589 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) {
1582 CALL_HEAP_FUNCTION(isolate(), 1590 CALL_HEAP_FUNCTION(isolate(),
1583 isolate()->heap()->AllocateSharedFunctionInfo(*name), 1591 isolate()->heap()->AllocateSharedFunctionInfo(*name),
1584 SharedFunctionInfo); 1592 SharedFunctionInfo);
1585 } 1593 }
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1988 return Handle<Object>::null(); 1996 return Handle<Object>::null();
1989 } 1997 }
1990 1998
1991 1999
1992 Handle<Object> Factory::ToBoolean(bool value) { 2000 Handle<Object> Factory::ToBoolean(bool value) {
1993 return value ? true_value() : false_value(); 2001 return value ? true_value() : false_value();
1994 } 2002 }
1995 2003
1996 2004
1997 } } // namespace v8::internal 2005 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/feedback-slots.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698