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

Side by Side Diff: src/bootstrapper.cc

Issue 12304004: Revert part of r13678 (InternalPackedArray). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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 | no next file » | 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 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after
1804 { 1804 {
1805 // RegExpResult initial map. 1805 // RegExpResult initial map.
1806 1806
1807 // Find global.Array.prototype to inherit from. 1807 // Find global.Array.prototype to inherit from.
1808 Handle<JSFunction> array_constructor(native_context()->array_function()); 1808 Handle<JSFunction> array_constructor(native_context()->array_function());
1809 Handle<JSObject> array_prototype( 1809 Handle<JSObject> array_prototype(
1810 JSObject::cast(array_constructor->instance_prototype())); 1810 JSObject::cast(array_constructor->instance_prototype()));
1811 1811
1812 // Add initial map. 1812 // Add initial map.
1813 Handle<Map> initial_map = 1813 Handle<Map> initial_map =
1814 factory()->NewMap(JS_ARRAY_TYPE, 1814 factory()->NewMap(JS_ARRAY_TYPE, JSRegExpResult::kSize);
1815 JSRegExpResult::kSize,
1816 FAST_ELEMENTS);
1817 initial_map->set_constructor(*array_constructor); 1815 initial_map->set_constructor(*array_constructor);
1818 1816
1819 // Set prototype on map. 1817 // Set prototype on map.
1820 initial_map->set_non_instance_prototype(false); 1818 initial_map->set_non_instance_prototype(false);
1821 initial_map->set_prototype(*array_prototype); 1819 initial_map->set_prototype(*array_prototype);
1822 1820
1823 // Update map with length accessor from Array and add "index" and "input". 1821 // Update map with length accessor from Array and add "index" and "input".
1824 Handle<DescriptorArray> reresult_descriptors = 1822 Handle<DescriptorArray> reresult_descriptors =
1825 factory()->NewDescriptorArray(0, 3); 1823 factory()->NewDescriptorArray(0, 3);
1826 DescriptorArray::WhitenessWitness witness(*reresult_descriptors); 1824 DescriptorArray::WhitenessWitness witness(*reresult_descriptors);
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
2459 return from + sizeof(NestingCounterType); 2457 return from + sizeof(NestingCounterType);
2460 } 2458 }
2461 2459
2462 2460
2463 // Called when the top-level V8 mutex is destroyed. 2461 // Called when the top-level V8 mutex is destroyed.
2464 void Bootstrapper::FreeThreadResources() { 2462 void Bootstrapper::FreeThreadResources() {
2465 ASSERT(!IsActive()); 2463 ASSERT(!IsActive());
2466 } 2464 }
2467 2465
2468 } } // namespace v8::internal 2466 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698