Commit 6376579f authored by yangguo@chromium.org's avatar yangguo@chromium.org

Remove direct calls to number-related allocators from runtime.cc.

R=dslomov@chromium.org

Review URL: https://codereview.chromium.org/238543004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20761 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1a91d420
...@@ -1632,9 +1632,12 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { ...@@ -1632,9 +1632,12 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) {
} }
Handle<String> Factory::NumberToString(Handle<Object> number) { Handle<String> Factory::NumberToString(Handle<Object> number,
bool check_number_string_cache) {
CALL_HEAP_FUNCTION(isolate(), CALL_HEAP_FUNCTION(isolate(),
isolate()->heap()->NumberToString(*number), String); isolate()->heap()->NumberToString(
*number, check_number_string_cache),
String);
} }
......
...@@ -491,7 +491,8 @@ class Factory V8_FINAL { ...@@ -491,7 +491,8 @@ class Factory V8_FINAL {
Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name,
Handle<Code> code); Handle<Code> code);
Handle<String> NumberToString(Handle<Object> number); Handle<String> NumberToString(Handle<Object> number,
bool check_number_string_cache = true);
Handle<String> Uint32ToString(uint32_t value); Handle<String> Uint32ToString(uint32_t value);
enum ApiInstanceType { enum ApiInstanceType {
......
This diff is collapsed.
...@@ -134,7 +134,6 @@ namespace internal { ...@@ -134,7 +134,6 @@ namespace internal {
F(NumberDiv, 2, 1) \ F(NumberDiv, 2, 1) \
F(NumberMod, 2, 1) \ F(NumberMod, 2, 1) \
F(NumberUnaryMinus, 1, 1) \ F(NumberUnaryMinus, 1, 1) \
F(NumberAlloc, 0, 1) \
F(NumberImul, 2, 1) \ F(NumberImul, 2, 1) \
\ \
F(StringBuilderConcat, 3, 1) \ F(StringBuilderConcat, 3, 1) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment