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

Side by Side Diff: src/contexts.h

Issue 2250863002: WIP: prototype ffi support (from 2084663004) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 3 years, 12 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/compiler/ffi-compiler.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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \ 334 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \
335 V(WASM_FUNCTION_MAP_INDEX, Map, wasm_function_map) \ 335 V(WASM_FUNCTION_MAP_INDEX, Map, wasm_function_map) \
336 V(WASM_INSTANCE_CONSTRUCTOR_INDEX, JSFunction, wasm_instance_constructor) \ 336 V(WASM_INSTANCE_CONSTRUCTOR_INDEX, JSFunction, wasm_instance_constructor) \
337 V(WASM_INSTANCE_SYM_INDEX, Symbol, wasm_instance_sym) \ 337 V(WASM_INSTANCE_SYM_INDEX, Symbol, wasm_instance_sym) \
338 V(WASM_MEMORY_CONSTRUCTOR_INDEX, JSFunction, wasm_memory_constructor) \ 338 V(WASM_MEMORY_CONSTRUCTOR_INDEX, JSFunction, wasm_memory_constructor) \
339 V(WASM_MEMORY_SYM_INDEX, Symbol, wasm_memory_sym) \ 339 V(WASM_MEMORY_SYM_INDEX, Symbol, wasm_memory_sym) \
340 V(WASM_MODULE_CONSTRUCTOR_INDEX, JSFunction, wasm_module_constructor) \ 340 V(WASM_MODULE_CONSTRUCTOR_INDEX, JSFunction, wasm_module_constructor) \
341 V(WASM_MODULE_SYM_INDEX, Symbol, wasm_module_sym) \ 341 V(WASM_MODULE_SYM_INDEX, Symbol, wasm_module_sym) \
342 V(WASM_TABLE_CONSTRUCTOR_INDEX, JSFunction, wasm_table_constructor) \ 342 V(WASM_TABLE_CONSTRUCTOR_INDEX, JSFunction, wasm_table_constructor) \
343 V(WASM_TABLE_SYM_INDEX, Symbol, wasm_table_sym) \ 343 V(WASM_TABLE_SYM_INDEX, Symbol, wasm_table_sym) \
344 V(NATIVE_FUNCTION_MAP_INDEX, Map, native_function_map) \
344 V(TYPED_ARRAY_FUN_INDEX, JSFunction, typed_array_function) \ 345 V(TYPED_ARRAY_FUN_INDEX, JSFunction, typed_array_function) \
345 V(TYPED_ARRAY_PROTOTYPE_INDEX, JSObject, typed_array_prototype) \ 346 V(TYPED_ARRAY_PROTOTYPE_INDEX, JSObject, typed_array_prototype) \
346 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ 347 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \
347 V(UINT16X8_FUNCTION_INDEX, JSFunction, uint16x8_function) \ 348 V(UINT16X8_FUNCTION_INDEX, JSFunction, uint16x8_function) \
348 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ 349 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \
349 V(UINT32X4_FUNCTION_INDEX, JSFunction, uint32x4_function) \ 350 V(UINT32X4_FUNCTION_INDEX, JSFunction, uint32x4_function) \
350 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ 351 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \
351 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ 352 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \
352 V(UINT8X16_FUNCTION_INDEX, JSFunction, uint8x16_function) \ 353 V(UINT8X16_FUNCTION_INDEX, JSFunction, uint8x16_function) \
353 NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \ 354 NATIVE_CONTEXT_INTRINSIC_FUNCTIONS(V) \
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 695 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
695 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 696 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
696 }; 697 };
697 698
698 typedef Context::Field ContextField; 699 typedef Context::Field ContextField;
699 700
700 } // namespace internal 701 } // namespace internal
701 } // namespace v8 702 } // namespace v8
702 703
703 #endif // V8_CONTEXTS_H_ 704 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/compiler/ffi-compiler.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698