OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |