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

Side by Side Diff: src/factory.cc

Issue 23470013: Remove obsolete Factory::EnsureCanContainElements method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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') | no next file » | 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 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 1076
1077 1077
1078 void Factory::SetContent(Handle<JSArray> array, 1078 void Factory::SetContent(Handle<JSArray> array,
1079 Handle<FixedArrayBase> elements) { 1079 Handle<FixedArrayBase> elements) {
1080 CALL_HEAP_FUNCTION_VOID( 1080 CALL_HEAP_FUNCTION_VOID(
1081 isolate(), 1081 isolate(),
1082 array->SetContent(*elements)); 1082 array->SetContent(*elements));
1083 } 1083 }
1084 1084
1085 1085
1086 void Factory::EnsureCanContainElements(Handle<JSArray> array,
1087 Handle<FixedArrayBase> elements,
1088 uint32_t length,
1089 EnsureElementsMode mode) {
1090 CALL_HEAP_FUNCTION_VOID(
1091 isolate(),
1092 array->EnsureCanContainElements(*elements, length, mode));
1093 }
1094
1095
1096 Handle<JSArrayBuffer> Factory::NewJSArrayBuffer() { 1086 Handle<JSArrayBuffer> Factory::NewJSArrayBuffer() {
1097 Handle<JSFunction> array_buffer_fun( 1087 Handle<JSFunction> array_buffer_fun(
1098 isolate()->context()->native_context()->array_buffer_fun()); 1088 isolate()->context()->native_context()->array_buffer_fun());
1099 CALL_HEAP_FUNCTION( 1089 CALL_HEAP_FUNCTION(
1100 isolate(), 1090 isolate(),
1101 isolate()->heap()->AllocateJSObject(*array_buffer_fun), 1091 isolate()->heap()->AllocateJSObject(*array_buffer_fun),
1102 JSArrayBuffer); 1092 JSArrayBuffer);
1103 } 1093 }
1104 1094
1105 1095
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 return Handle<Object>::null(); 1631 return Handle<Object>::null();
1642 } 1632 }
1643 1633
1644 1634
1645 Handle<Object> Factory::ToBoolean(bool value) { 1635 Handle<Object> Factory::ToBoolean(bool value) {
1646 return value ? true_value() : false_value(); 1636 return value ? true_value() : false_value();
1647 } 1637 }
1648 1638
1649 1639
1650 } } // namespace v8::internal 1640 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698