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

Side by Side Diff: src/contexts.h

Issue 1949863002: Fix TypedArray Property optimizations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use CreateFunction Created 4 years, 7 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
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 #ifndef V8_CONTEXTS_H_ 5 #ifndef V8_CONTEXTS_H_
6 #define V8_CONTEXTS_H_ 6 #define V8_CONTEXTS_H_
7 7
8 #include "src/heap/heap.h" 8 #include "src/heap/heap.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 10
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ 237 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \
238 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \ 238 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \
239 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ 239 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \
240 V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \ 240 V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \
241 V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ 241 V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \
242 strict_function_without_prototype_map) \ 242 strict_function_without_prototype_map) \
243 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ 243 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \
244 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ 244 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \
245 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \ 245 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \
246 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \ 246 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \
247 V(TYPED_ARRAY_FUN_INDEX, JSFunction, typed_array_function) \
248 V(TYPED_ARRAY_PROTOTYPE_INDEX, JSObject, typed_array_prototype) \
247 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ 249 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \
248 V(UINT16X8_FUNCTION_INDEX, JSFunction, uint16x8_function) \ 250 V(UINT16X8_FUNCTION_INDEX, JSFunction, uint16x8_function) \
249 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ 251 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \
250 V(UINT32X4_FUNCTION_INDEX, JSFunction, uint32x4_function) \ 252 V(UINT32X4_FUNCTION_INDEX, JSFunction, uint32x4_function) \
251 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ 253 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \
252 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ 254 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \
253 V(UINT8X16_FUNCTION_INDEX, JSFunction, uint8x16_function) \ 255 V(UINT8X16_FUNCTION_INDEX, JSFunction, uint8x16_function) \
254 NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ 256 NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \
255 NATIVE_CONTEXT_IMPORTED_FIELDS(V) 257 NATIVE_CONTEXT_IMPORTED_FIELDS(V)
256 258
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 #endif 557 #endif
556 558
557 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 559 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
558 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 560 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
559 }; 561 };
560 562
561 } // namespace internal 563 } // namespace internal
562 } // namespace v8 564 } // namespace v8
563 565
564 #endif // V8_CONTEXTS_H_ 566 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/js/array-iterator.js » ('j') | src/js/array-iterator.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698