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

Side by Side Diff: src/factory.cc

Issue 254593002: Reland r20932: "*NumberDictionary::AtNumberPut() handlified." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: The fix Created 6 years, 7 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/objects.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 "macro-assembler.h" 7 #include "macro-assembler.h"
8 #include "isolate-inl.h" 8 #include "isolate-inl.h"
9 #include "v8conversions.h" 9 #include "v8conversions.h"
10 10
(...skipping 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after
1956 } 1956 }
1957 1957
1958 // We tenure the allocated string since it is referenced from the 1958 // We tenure the allocated string since it is referenced from the
1959 // number-string cache which lives in the old space. 1959 // number-string cache which lives in the old space.
1960 Handle<String> js_string = NewStringFromAsciiChecked(str, TENURED); 1960 Handle<String> js_string = NewStringFromAsciiChecked(str, TENURED);
1961 SetNumberStringCache(number, js_string); 1961 SetNumberStringCache(number, js_string);
1962 return js_string; 1962 return js_string;
1963 } 1963 }
1964 1964
1965 1965
1966 Handle<SeededNumberDictionary> Factory::DictionaryAtNumberPut(
1967 Handle<SeededNumberDictionary> dictionary,
1968 uint32_t key,
1969 Handle<Object> value) {
1970 CALL_HEAP_FUNCTION(isolate(),
1971 dictionary->AtNumberPut(key, *value),
1972 SeededNumberDictionary);
1973 }
1974
1975
1976 Handle<UnseededNumberDictionary> Factory::DictionaryAtNumberPut(
1977 Handle<UnseededNumberDictionary> dictionary,
1978 uint32_t key,
1979 Handle<Object> value) {
1980 CALL_HEAP_FUNCTION(isolate(),
1981 dictionary->AtNumberPut(key, *value),
1982 UnseededNumberDictionary);
1983 }
1984
1985
1986 void Factory::InitializeFunction(Handle<JSFunction> function, 1966 void Factory::InitializeFunction(Handle<JSFunction> function,
1987 Handle<SharedFunctionInfo> info, 1967 Handle<SharedFunctionInfo> info,
1988 Handle<Context> context, 1968 Handle<Context> context,
1989 MaybeHandle<Object> maybe_prototype) { 1969 MaybeHandle<Object> maybe_prototype) {
1990 function->initialize_properties(); 1970 function->initialize_properties();
1991 function->initialize_elements(); 1971 function->initialize_elements();
1992 function->set_shared(*info); 1972 function->set_shared(*info);
1993 function->set_code(info->code()); 1973 function->set_code(info->code());
1994 function->set_context(*context); 1974 function->set_context(*context);
1995 Handle<Object> prototype; 1975 Handle<Object> prototype;
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2345 return Handle<Object>::null(); 2325 return Handle<Object>::null();
2346 } 2326 }
2347 2327
2348 2328
2349 Handle<Object> Factory::ToBoolean(bool value) { 2329 Handle<Object> Factory::ToBoolean(bool value) {
2350 return value ? true_value() : false_value(); 2330 return value ? true_value() : false_value();
2351 } 2331 }
2352 2332
2353 2333
2354 } } // namespace v8::internal 2334 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698