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

Side by Side Diff: src/factory.cc

Issue 23578012: remove Isolate::Current from most files starting with 'j' through 'o' (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/extensions/statistics-extension.cc ('k') | src/heap.cc » ('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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ObjectHashTable::Allocate(isolate()->heap(), 123 ObjectHashTable::Allocate(isolate()->heap(),
124 at_least_space_for), 124 at_least_space_for),
125 ObjectHashTable); 125 ObjectHashTable);
126 } 126 }
127 127
128 128
129 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors, 129 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors,
130 int slack) { 130 int slack) {
131 ASSERT(0 <= number_of_descriptors); 131 ASSERT(0 <= number_of_descriptors);
132 CALL_HEAP_FUNCTION(isolate(), 132 CALL_HEAP_FUNCTION(isolate(),
133 DescriptorArray::Allocate(number_of_descriptors, slack), 133 DescriptorArray::Allocate(
134 isolate(), number_of_descriptors, slack),
134 DescriptorArray); 135 DescriptorArray);
135 } 136 }
136 137
137 138
138 Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData( 139 Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData(
139 int deopt_entry_count, 140 int deopt_entry_count,
140 PretenureFlag pretenure) { 141 PretenureFlag pretenure) {
141 ASSERT(deopt_entry_count > 0); 142 ASSERT(deopt_entry_count > 0);
142 CALL_HEAP_FUNCTION(isolate(), 143 CALL_HEAP_FUNCTION(isolate(),
143 DeoptimizationInputData::Allocate(deopt_entry_count, 144 DeoptimizationInputData::Allocate(deopt_entry_count,
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 return Handle<Object>::null(); 1646 return Handle<Object>::null();
1646 } 1647 }
1647 1648
1648 1649
1649 Handle<Object> Factory::ToBoolean(bool value) { 1650 Handle<Object> Factory::ToBoolean(bool value) {
1650 return value ? true_value() : false_value(); 1651 return value ? true_value() : false_value();
1651 } 1652 }
1652 1653
1653 1654
1654 } } // namespace v8::internal 1655 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/extensions/statistics-extension.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698