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

Side by Side Diff: src/contexts.h

Issue 1109353003: Unify internal and external typed arrays a bit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 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
« no previous file with comments | « src/bootstrapper.cc ('k') | src/factory.cc » ('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 #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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ 94 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \
95 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ 95 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \
96 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ 96 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \
97 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ 97 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \
98 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ 98 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \
99 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \ 99 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \
100 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \ 100 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \
101 V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \ 101 V(TO_LENGTH_FUN_INDEX, JSFunction, to_length_fun) \
102 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ 102 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \
103 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ 103 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \
104 V(ARRAY_BUFFER_MAP_INDEX, Map, array_buffer_map) \
104 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ 105 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \
105 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \ 106 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \
106 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ 107 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \
107 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \ 108 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \
108 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ 109 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \
109 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \ 110 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \
110 V(FLOAT32_ARRAY_FUN_INDEX, JSFunction, float32_array_fun) \ 111 V(FLOAT32_ARRAY_FUN_INDEX, JSFunction, float32_array_fun) \
111 V(FLOAT64_ARRAY_FUN_INDEX, JSFunction, float64_array_fun) \ 112 V(FLOAT64_ARRAY_FUN_INDEX, JSFunction, float64_array_fun) \
112 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ 113 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \
113 V(INT8_ARRAY_EXTERNAL_MAP_INDEX, Map, int8_array_external_map) \ 114 V(INT8_ARRAY_EXTERNAL_MAP_INDEX, Map, int8_array_external_map) \
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 TO_NUMBER_FUN_INDEX, 346 TO_NUMBER_FUN_INDEX,
346 TO_STRING_FUN_INDEX, 347 TO_STRING_FUN_INDEX,
347 TO_DETAIL_STRING_FUN_INDEX, 348 TO_DETAIL_STRING_FUN_INDEX,
348 TO_OBJECT_FUN_INDEX, 349 TO_OBJECT_FUN_INDEX,
349 TO_INTEGER_FUN_INDEX, 350 TO_INTEGER_FUN_INDEX,
350 TO_UINT32_FUN_INDEX, 351 TO_UINT32_FUN_INDEX,
351 TO_INT32_FUN_INDEX, 352 TO_INT32_FUN_INDEX,
352 TO_BOOLEAN_FUN_INDEX, 353 TO_BOOLEAN_FUN_INDEX,
353 GLOBAL_EVAL_FUN_INDEX, 354 GLOBAL_EVAL_FUN_INDEX,
354 ARRAY_BUFFER_FUN_INDEX, 355 ARRAY_BUFFER_FUN_INDEX,
356 ARRAY_BUFFER_MAP_INDEX,
355 UINT8_ARRAY_FUN_INDEX, 357 UINT8_ARRAY_FUN_INDEX,
356 INT8_ARRAY_FUN_INDEX, 358 INT8_ARRAY_FUN_INDEX,
357 UINT16_ARRAY_FUN_INDEX, 359 UINT16_ARRAY_FUN_INDEX,
358 INT16_ARRAY_FUN_INDEX, 360 INT16_ARRAY_FUN_INDEX,
359 UINT32_ARRAY_FUN_INDEX, 361 UINT32_ARRAY_FUN_INDEX,
360 INT32_ARRAY_FUN_INDEX, 362 INT32_ARRAY_FUN_INDEX,
361 FLOAT32_ARRAY_FUN_INDEX, 363 FLOAT32_ARRAY_FUN_INDEX,
362 FLOAT64_ARRAY_FUN_INDEX, 364 FLOAT64_ARRAY_FUN_INDEX,
363 UINT8_CLAMPED_ARRAY_FUN_INDEX, 365 UINT8_CLAMPED_ARRAY_FUN_INDEX,
364 INT8_ARRAY_EXTERNAL_MAP_INDEX, 366 INT8_ARRAY_EXTERNAL_MAP_INDEX,
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 622 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
621 #endif 623 #endif
622 624
623 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 625 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
624 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 626 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
625 }; 627 };
626 628
627 } } // namespace v8::internal 629 } } // namespace v8::internal
628 630
629 #endif // V8_CONTEXTS_H_ 631 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698