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

Side by Side Diff: src/factory.cc

Issue 238543004: Remove direct calls to number-related allocators from runtime.cc. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: changed as suggested Created 6 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/runtime.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "factory.h" 5 #include "factory.h"
6 6
7 #include "isolate-inl.h" 7 #include "isolate-inl.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 } 1613 }
1614 1614
1615 1615
1616 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { 1616 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) {
1617 CALL_HEAP_FUNCTION(isolate(), 1617 CALL_HEAP_FUNCTION(isolate(),
1618 isolate()->heap()->AllocateSharedFunctionInfo(*name), 1618 isolate()->heap()->AllocateSharedFunctionInfo(*name),
1619 SharedFunctionInfo); 1619 SharedFunctionInfo);
1620 } 1620 }
1621 1621
1622 1622
1623 Handle<String> Factory::NumberToString(Handle<Object> number) { 1623 Handle<String> Factory::NumberToString(Handle<Object> number,
1624 bool check_number_string_cache) {
1624 CALL_HEAP_FUNCTION(isolate(), 1625 CALL_HEAP_FUNCTION(isolate(),
1625 isolate()->heap()->NumberToString(*number), String); 1626 isolate()->heap()->NumberToString(
1627 *number, check_number_string_cache),
1628 String);
1626 } 1629 }
1627 1630
1628 1631
1629 Handle<String> Factory::Uint32ToString(uint32_t value) { 1632 Handle<String> Factory::Uint32ToString(uint32_t value) {
1630 CALL_HEAP_FUNCTION(isolate(), 1633 CALL_HEAP_FUNCTION(isolate(),
1631 isolate()->heap()->Uint32ToString(value), String); 1634 isolate()->heap()->Uint32ToString(value), String);
1632 } 1635 }
1633 1636
1634 1637
1635 Handle<SeededNumberDictionary> Factory::DictionaryAtNumberPut( 1638 Handle<SeededNumberDictionary> Factory::DictionaryAtNumberPut(
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
2006 if (String::Equals(name, infinity_string())) return infinity_value(); 2009 if (String::Equals(name, infinity_string())) return infinity_value();
2007 return Handle<Object>::null(); 2010 return Handle<Object>::null();
2008 } 2011 }
2009 2012
2010 2013
2011 Handle<Object> Factory::ToBoolean(bool value) { 2014 Handle<Object> Factory::ToBoolean(bool value) {
2012 return value ? true_value() : false_value(); 2015 return value ? true_value() : false_value();
2013 } 2016 }
2014 2017
2015 } } // namespace v8::internal 2018 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698