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

Side by Side Diff: src/bootstrapper.cc

Issue 10784014: Removed transitions from the accessor pair descriptors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 8 years, 5 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 | « no previous file | src/factory.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 1733
1734 // Update map with length accessor from Array and add "index" and "input". 1734 // Update map with length accessor from Array and add "index" and "input".
1735 Handle<DescriptorArray> reresult_descriptors = 1735 Handle<DescriptorArray> reresult_descriptors =
1736 factory()->NewDescriptorArray(3); 1736 factory()->NewDescriptorArray(3);
1737 DescriptorArray::WhitenessWitness witness(*reresult_descriptors); 1737 DescriptorArray::WhitenessWitness witness(*reresult_descriptors);
1738 1738
1739 JSFunction* array_function = global_context()->array_function(); 1739 JSFunction* array_function = global_context()->array_function();
1740 Handle<DescriptorArray> array_descriptors( 1740 Handle<DescriptorArray> array_descriptors(
1741 array_function->initial_map()->instance_descriptors()); 1741 array_function->initial_map()->instance_descriptors());
1742 int old = array_descriptors->SearchWithCache(heap()->length_symbol()); 1742 int old = array_descriptors->SearchWithCache(heap()->length_symbol());
1743 MaybeObject* copy_result = 1743 reresult_descriptors->CopyFrom(0, *array_descriptors, old, witness);
1744 reresult_descriptors->CopyFrom(0, *array_descriptors, old, witness);
1745 if (copy_result->IsFailure()) return false;
1746 1744
1747 reresult_descriptors->SetLastAdded(0); 1745 reresult_descriptors->SetLastAdded(0);
1748 1746
1749 { 1747 {
1750 FieldDescriptor index_field(heap()->index_symbol(), 1748 FieldDescriptor index_field(heap()->index_symbol(),
1751 JSRegExpResult::kIndexIndex, 1749 JSRegExpResult::kIndexIndex,
1752 NONE); 1750 NONE);
1753 reresult_descriptors->Append(&index_field, witness); 1751 reresult_descriptors->Append(&index_field, witness);
1754 } 1752 }
1755 1753
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2356 return from + sizeof(NestingCounterType); 2354 return from + sizeof(NestingCounterType);
2357 } 2355 }
2358 2356
2359 2357
2360 // Called when the top-level V8 mutex is destroyed. 2358 // Called when the top-level V8 mutex is destroyed.
2361 void Bootstrapper::FreeThreadResources() { 2359 void Bootstrapper::FreeThreadResources() {
2362 ASSERT(!IsActive()); 2360 ASSERT(!IsActive());
2363 } 2361 }
2364 2362
2365 } } // namespace v8::internal 2363 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698