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

Side by Side Diff: src/factory.cc

Issue 8506004: Made PropertyType handling even more explicit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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 | « no previous file | src/mark-compact.cc » ('j') | src/profile-generator.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 NewDescriptorArray(array->number_of_descriptors() + nof_callbacks); 837 NewDescriptorArray(array->number_of_descriptors() + nof_callbacks);
838 838
839 // Number of descriptors added to the result so far. 839 // Number of descriptors added to the result so far.
840 int descriptor_count = 0; 840 int descriptor_count = 0;
841 841
842 // Ensure that marking will not progress and change color of objects. 842 // Ensure that marking will not progress and change color of objects.
843 DescriptorArray::WhitenessWitness witness(*result); 843 DescriptorArray::WhitenessWitness witness(*result);
844 844
845 // Copy the descriptors from the array. 845 // Copy the descriptors from the array.
846 for (int i = 0; i < array->number_of_descriptors(); i++) { 846 for (int i = 0; i < array->number_of_descriptors(); i++) {
847 if (array->GetType(i) != NULL_DESCRIPTOR) { 847 if (!array->IsNullDescriptor(i)) {
848 result->CopyFrom(descriptor_count++, *array, i, witness); 848 result->CopyFrom(descriptor_count++, *array, i, witness);
849 } 849 }
850 } 850 }
851 851
852 // Number of duplicates detected. 852 // Number of duplicates detected.
853 int duplicates = 0; 853 int duplicates = 0;
854 854
855 // Fill in new callback descriptors. Process the callbacks from 855 // Fill in new callback descriptors. Process the callbacks from
856 // back to front so that the last callback with a given name takes 856 // back to front so that the last callback with a given name takes
857 // precedence over previously added callbacks with that name. 857 // precedence over previously added callbacks with that name.
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 1358
1359 1359
1360 Handle<Object> Factory::ToBoolean(bool value) { 1360 Handle<Object> Factory::ToBoolean(bool value) {
1361 return Handle<Object>(value 1361 return Handle<Object>(value
1362 ? isolate()->heap()->true_value() 1362 ? isolate()->heap()->true_value()
1363 : isolate()->heap()->false_value()); 1363 : isolate()->heap()->false_value());
1364 } 1364 }
1365 1365
1366 1366
1367 } } // namespace v8::internal 1367 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mark-compact.cc » ('j') | src/profile-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698