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

Side by Side Diff: src/heap/heap.cc

Issue 1230343003: V8: Add SIMD functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/harmony-simd.js ('k') | src/objects.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 3357 matching lines...) Expand 10 before | Expand all | Expand 10 after
3368 name->set_name(*name##d); \ 3368 name->set_name(*name##d); \
3369 roots_[k##name##RootIndex] = *name; 3369 roots_[k##name##RootIndex] = *name;
3370 PUBLIC_SYMBOL_LIST(SYMBOL_INIT) 3370 PUBLIC_SYMBOL_LIST(SYMBOL_INIT)
3371 #undef SYMBOL_INIT 3371 #undef SYMBOL_INIT
3372 } 3372 }
3373 3373
3374 CreateFixedStubs(); 3374 CreateFixedStubs();
3375 3375
3376 // Allocate the dictionary of intrinsic function names. 3376 // Allocate the dictionary of intrinsic function names.
3377 Handle<NameDictionary> intrinsic_names = 3377 Handle<NameDictionary> intrinsic_names =
3378 NameDictionary::New(isolate(), Runtime::kNumFunctions, TENURED); 3378 NameDictionary::New(isolate(), 2 * Runtime::kNumFunctions, TENURED);
bbudge 2015/08/04 00:35:49 This is just a hack until yangguo lands this: http
3379 Runtime::InitializeIntrinsicFunctionNames(isolate(), intrinsic_names); 3379 Runtime::InitializeIntrinsicFunctionNames(isolate(), intrinsic_names);
3380 set_intrinsic_function_names(*intrinsic_names); 3380 set_intrinsic_function_names(*intrinsic_names);
3381 3381
3382 set_number_string_cache( 3382 set_number_string_cache(
3383 *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED)); 3383 *factory->NewFixedArray(kInitialNumberStringCacheSize * 2, TENURED));
3384 3384
3385 // Allocate cache for single character one byte strings. 3385 // Allocate cache for single character one byte strings.
3386 set_single_character_string_cache( 3386 set_single_character_string_cache(
3387 *factory->NewFixedArray(String::kMaxOneByteCharCode + 1, TENURED)); 3387 *factory->NewFixedArray(String::kMaxOneByteCharCode + 1, TENURED));
3388 3388
(...skipping 3559 matching lines...) Expand 10 before | Expand all | Expand 10 after
6948 *object_type = "CODE_TYPE"; \ 6948 *object_type = "CODE_TYPE"; \
6949 *object_sub_type = "CODE_AGE/" #name; \ 6949 *object_sub_type = "CODE_AGE/" #name; \
6950 return true; 6950 return true;
6951 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) 6951 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME)
6952 #undef COMPARE_AND_RETURN_NAME 6952 #undef COMPARE_AND_RETURN_NAME
6953 } 6953 }
6954 return false; 6954 return false;
6955 } 6955 }
6956 } // namespace internal 6956 } // namespace internal
6957 } // namespace v8 6957 } // namespace v8
OLDNEW
« no previous file with comments | « src/harmony-simd.js ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698