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

Side by Side Diff: src/bootstrapper.cc

Issue 2465253011: Fastpath some spread-call desugaring. (Closed)
Patch Set: Rebase to master Created 4 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
« no previous file with comments | « no previous file | src/contexts.h » ('j') | src/heap/heap.cc » ('J')
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 "src/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 // Set the length for the function to satisfy ECMA-262. 1342 // Set the length for the function to satisfy ECMA-262.
1343 next->shared()->set_length(0); 1343 next->shared()->set_length(0);
1344 1344
1345 Handle<JSFunction> array_iterator_function = CreateFunction( 1345 Handle<JSFunction> array_iterator_function = CreateFunction(
1346 isolate, factory->ArrayIterator_string(), 1346 isolate, factory->ArrayIterator_string(),
1347 JS_FAST_ARRAY_VALUE_ITERATOR_TYPE, JSArrayIterator::kSize, 1347 JS_FAST_ARRAY_VALUE_ITERATOR_TYPE, JSArrayIterator::kSize,
1348 array_iterator_prototype, Builtins::kIllegal); 1348 array_iterator_prototype, Builtins::kIllegal);
1349 array_iterator_function->shared()->set_instance_class_name( 1349 array_iterator_function->shared()->set_instance_class_name(
1350 isolate->heap()->ArrayIterator_string()); 1350 isolate->heap()->ArrayIterator_string());
1351 1351
1352 native_context()->set_initial_array_iterator_prototype(
1353 *array_iterator_prototype);
1354 native_context()->set_initial_array_iterator_prototype_map(
1355 array_iterator_prototype->map());
1356
1352 Handle<Map> initial_map(array_iterator_function->initial_map(), isolate); 1357 Handle<Map> initial_map(array_iterator_function->initial_map(), isolate);
1353 1358
1354 #define ARRAY_ITERATOR_LIST(V) \ 1359 #define ARRAY_ITERATOR_LIST(V) \
1355 V(TYPED_ARRAY, KEY, typed_array, key) \ 1360 V(TYPED_ARRAY, KEY, typed_array, key) \
1356 V(FAST_ARRAY, KEY, fast_array, key) \ 1361 V(FAST_ARRAY, KEY, fast_array, key) \
1357 V(GENERIC_ARRAY, KEY, array, key) \ 1362 V(GENERIC_ARRAY, KEY, array, key) \
1358 V(UINT8_ARRAY, KEY_VALUE, uint8_array, key_value) \ 1363 V(UINT8_ARRAY, KEY_VALUE, uint8_array, key_value) \
1359 V(INT8_ARRAY, KEY_VALUE, int8_array, key_value) \ 1364 V(INT8_ARRAY, KEY_VALUE, int8_array, key_value) \
1360 V(UINT16_ARRAY, KEY_VALUE, uint16_array, key_value) \ 1365 V(UINT16_ARRAY, KEY_VALUE, uint16_array, key_value) \
1361 V(INT16_ARRAY, KEY_VALUE, int16_array, key_value) \ 1366 V(INT16_ARRAY, KEY_VALUE, int16_array, key_value) \
(...skipping 3190 matching lines...) Expand 10 before | Expand all | Expand 10 after
4552 } 4557 }
4553 4558
4554 4559
4555 // Called when the top-level V8 mutex is destroyed. 4560 // Called when the top-level V8 mutex is destroyed.
4556 void Bootstrapper::FreeThreadResources() { 4561 void Bootstrapper::FreeThreadResources() {
4557 DCHECK(!IsActive()); 4562 DCHECK(!IsActive());
4558 } 4563 }
4559 4564
4560 } // namespace internal 4565 } // namespace internal
4561 } // namespace v8 4566 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/contexts.h » ('j') | src/heap/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698