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

Side by Side Diff: src/factory.cc

Issue 246077: Changed Object.keys to return strings for element indices. (Closed)
Patch Set: Created 11 years, 2 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
« no previous file with comments | « src/factory.h ('k') | src/heap.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 return result; 666 return result;
667 } 667 }
668 668
669 669
670 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { 670 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) {
671 CALL_HEAP_FUNCTION(Heap::AllocateSharedFunctionInfo(*name), 671 CALL_HEAP_FUNCTION(Heap::AllocateSharedFunctionInfo(*name),
672 SharedFunctionInfo); 672 SharedFunctionInfo);
673 } 673 }
674 674
675 675
676 Handle<String> Factory::NumberToString(Handle<Object> number) {
677 CALL_HEAP_FUNCTION(Heap::NumberToString(*number), String);
678 }
679
680
676 Handle<NumberDictionary> Factory::DictionaryAtNumberPut( 681 Handle<NumberDictionary> Factory::DictionaryAtNumberPut(
677 Handle<NumberDictionary> dictionary, 682 Handle<NumberDictionary> dictionary,
678 uint32_t key, 683 uint32_t key,
679 Handle<Object> value) { 684 Handle<Object> value) {
680 CALL_HEAP_FUNCTION(dictionary->AtNumberPut(key, *value), NumberDictionary); 685 CALL_HEAP_FUNCTION(dictionary->AtNumberPut(key, *value), NumberDictionary);
681 } 686 }
682 687
683 688
684 Handle<JSFunction> Factory::NewFunctionHelper(Handle<String> name, 689 Handle<JSFunction> Factory::NewFunctionHelper(Handle<String> name,
685 Handle<Object> prototype) { 690 Handle<Object> prototype) {
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 Execution::ConfigureInstance(instance, 934 Execution::ConfigureInstance(instance,
930 instance_template, 935 instance_template,
931 pending_exception); 936 pending_exception);
932 } else { 937 } else {
933 *pending_exception = false; 938 *pending_exception = false;
934 } 939 }
935 } 940 }
936 941
937 942
938 } } // namespace v8::internal 943 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698