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

Side by Side Diff: src/factory.cc

Issue 14200035: Rollback of r13728 in 3.17 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.17
Patch Set: Created 7 years, 8 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/json-parser.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 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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 943
944 Handle<GlobalObject> Factory::NewGlobalObject( 944 Handle<GlobalObject> Factory::NewGlobalObject(
945 Handle<JSFunction> constructor) { 945 Handle<JSFunction> constructor) {
946 CALL_HEAP_FUNCTION(isolate(), 946 CALL_HEAP_FUNCTION(isolate(),
947 isolate()->heap()->AllocateGlobalObject(*constructor), 947 isolate()->heap()->AllocateGlobalObject(*constructor),
948 GlobalObject); 948 GlobalObject);
949 } 949 }
950 950
951 951
952 952
953 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map, 953 Handle<JSObject> Factory::NewJSObjectFromMap(Handle<Map> map) {
954 PretenureFlag pretenure) {
955 CALL_HEAP_FUNCTION( 954 CALL_HEAP_FUNCTION(
956 isolate(), 955 isolate(),
957 isolate()->heap()->AllocateJSObjectFromMap(*map, pretenure), 956 isolate()->heap()->AllocateJSObjectFromMap(*map, NOT_TENURED),
958 JSObject); 957 JSObject);
959 } 958 }
960 959
961 960
962 Handle<JSArray> Factory::NewJSArray(int capacity, 961 Handle<JSArray> Factory::NewJSArray(int capacity,
963 ElementsKind elements_kind, 962 ElementsKind elements_kind,
964 PretenureFlag pretenure) { 963 PretenureFlag pretenure) {
965 if (capacity != 0) { 964 if (capacity != 0) {
966 elements_kind = GetHoleyElementsKind(elements_kind); 965 elements_kind = GetHoleyElementsKind(elements_kind);
967 } 966 }
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1458 return Handle<Object>::null(); 1457 return Handle<Object>::null();
1459 } 1458 }
1460 1459
1461 1460
1462 Handle<Object> Factory::ToBoolean(bool value) { 1461 Handle<Object> Factory::ToBoolean(bool value) {
1463 return value ? true_value() : false_value(); 1462 return value ? true_value() : false_value();
1464 } 1463 }
1465 1464
1466 1465
1467 } } // namespace v8::internal 1466 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/json-parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698