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

Side by Side Diff: src/factory.cc

Issue 12314155: Allow direct allocation in old pointer space. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 940
941 941
942 Handle<GlobalObject> Factory::NewGlobalObject( 942 Handle<GlobalObject> Factory::NewGlobalObject(
943 Handle<JSFunction> constructor) { 943 Handle<JSFunction> constructor) {
944 CALL_HEAP_FUNCTION(isolate(), 944 CALL_HEAP_FUNCTION(isolate(),
945 isolate()->heap()->AllocateGlobalObject(*constructor), 945 isolate()->heap()->AllocateGlobalObject(*constructor),
946 GlobalObject); 946 GlobalObject);
947 } 947 }
948 948
949 949
950
danno 2013/03/05 12:18:18 nit: not sure you should make a whitespace change
Hannes Payer (out of office) 2013/03/11 17:16:31 I had some changes in that file, which went away o
951 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map, 950 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map,
952 PretenureFlag pretenure) { 951 PretenureFlag pretenure) {
953 CALL_HEAP_FUNCTION( 952 CALL_HEAP_FUNCTION(
954 isolate(), 953 isolate(),
955 isolate()->heap()->AllocateJSObjectFromMap(*map, pretenure), 954 isolate()->heap()->AllocateJSObjectFromMap(*map, pretenure),
956 JSObject); 955 JSObject);
957 } 956 }
958 957
959 958
960 Handle<JSArray> Factory::NewJSArray(int capacity, 959 Handle<JSArray> Factory::NewJSArray(int capacity,
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 return Handle<Object>::null(); 1455 return Handle<Object>::null();
1457 } 1456 }
1458 1457
1459 1458
1460 Handle<Object> Factory::ToBoolean(bool value) { 1459 Handle<Object> Factory::ToBoolean(bool value) {
1461 return value ? true_value() : false_value(); 1460 return value ? true_value() : false_value();
1462 } 1461 }
1463 1462
1464 1463
1465 } } // namespace v8::internal 1464 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698