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

Side by Side Diff: src/contexts.h

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: samevalue.js tweak. Created 5 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
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Factory::NewContext. 74 // Factory::NewContext.
75 75
76 #define NATIVE_CONTEXT_FIELDS(V) \ 76 #define NATIVE_CONTEXT_FIELDS(V) \
77 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ 77 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \
78 V(SECURITY_TOKEN_INDEX, Object, security_token) \ 78 V(SECURITY_TOKEN_INDEX, Object, security_token) \
79 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ 79 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \
80 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \ 80 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \
81 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ 81 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \
82 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \ 82 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \
83 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \ 83 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \
84 V(FLOAT32X4_FUNCTION_INDEX, JSFunction, float32x4_function) \
84 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \ 85 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \
85 V(JS_OBJECT_STRONG_MAP_INDEX, Map, js_object_strong_map) \ 86 V(JS_OBJECT_STRONG_MAP_INDEX, Map, js_object_strong_map) \
86 V(INTERNAL_ARRAY_FUNCTION_INDEX, JSFunction, internal_array_function) \ 87 V(INTERNAL_ARRAY_FUNCTION_INDEX, JSFunction, internal_array_function) \
87 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ 88 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \
88 V(JS_ARRAY_MAPS_INDEX, Object, js_array_maps) \ 89 V(JS_ARRAY_MAPS_INDEX, Object, js_array_maps) \
89 V(JS_ARRAY_STRONG_MAPS_INDEX, Object, js_array_strong_maps) \ 90 V(JS_ARRAY_STRONG_MAPS_INDEX, Object, js_array_strong_maps) \
90 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \ 91 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \
91 V(JSON_OBJECT_INDEX, JSObject, json_object) \ 92 V(JSON_OBJECT_INDEX, JSObject, json_object) \
92 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ 93 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \
93 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ 94 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, 352 STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX,
352 STRONG_CONSTRUCTOR_MAP_INDEX, 353 STRONG_CONSTRUCTOR_MAP_INDEX,
353 BOUND_FUNCTION_MAP_INDEX, 354 BOUND_FUNCTION_MAP_INDEX,
354 INITIAL_OBJECT_PROTOTYPE_INDEX, 355 INITIAL_OBJECT_PROTOTYPE_INDEX,
355 INITIAL_ARRAY_PROTOTYPE_INDEX, 356 INITIAL_ARRAY_PROTOTYPE_INDEX,
356 BOOLEAN_FUNCTION_INDEX, 357 BOOLEAN_FUNCTION_INDEX,
357 NUMBER_FUNCTION_INDEX, 358 NUMBER_FUNCTION_INDEX,
358 STRING_FUNCTION_INDEX, 359 STRING_FUNCTION_INDEX,
359 STRING_FUNCTION_PROTOTYPE_MAP_INDEX, 360 STRING_FUNCTION_PROTOTYPE_MAP_INDEX,
360 SYMBOL_FUNCTION_INDEX, 361 SYMBOL_FUNCTION_INDEX,
362 SIMD_OBJECT_INDEX,
363 FLOAT32X4_FUNCTION_INDEX,
361 OBJECT_FUNCTION_INDEX, 364 OBJECT_FUNCTION_INDEX,
362 JS_OBJECT_STRONG_MAP_INDEX, 365 JS_OBJECT_STRONG_MAP_INDEX,
363 INTERNAL_ARRAY_FUNCTION_INDEX, 366 INTERNAL_ARRAY_FUNCTION_INDEX,
364 ARRAY_FUNCTION_INDEX, 367 ARRAY_FUNCTION_INDEX,
365 JS_ARRAY_MAPS_INDEX, 368 JS_ARRAY_MAPS_INDEX,
366 JS_ARRAY_STRONG_MAPS_INDEX, 369 JS_ARRAY_STRONG_MAPS_INDEX,
367 DATE_FUNCTION_INDEX, 370 DATE_FUNCTION_INDEX,
368 JSON_OBJECT_INDEX, 371 JSON_OBJECT_INDEX,
369 REGEXP_FUNCTION_INDEX, 372 REGEXP_FUNCTION_INDEX,
370 CREATE_DATE_FUN_INDEX, 373 CREATE_DATE_FUN_INDEX,
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 671 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
669 #endif 672 #endif
670 673
671 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 674 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
672 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 675 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
673 }; 676 };
674 677
675 } } // namespace v8::internal 678 } } // namespace v8::internal
676 679
677 #endif // V8_CONTEXTS_H_ 680 #endif // V8_CONTEXTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698