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

Side by Side Diff: src/contexts.h

Issue 14195034: First cut at API for native Typed Arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Self-review Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ 117 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \
118 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ 118 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \
119 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ 119 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \
120 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ 120 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \
121 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \ 121 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \
122 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \ 122 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \
123 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ 123 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \
124 V(INSTANTIATE_FUN_INDEX, JSFunction, instantiate_fun) \ 124 V(INSTANTIATE_FUN_INDEX, JSFunction, instantiate_fun) \
125 V(CONFIGURE_INSTANCE_FUN_INDEX, JSFunction, configure_instance_fun) \ 125 V(CONFIGURE_INSTANCE_FUN_INDEX, JSFunction, configure_instance_fun) \
126 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \ 126 V(ARRAY_BUFFER_FUN_INDEX, JSFunction, array_buffer_fun) \
127 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \
128 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \
129 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \
130 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \
131 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \
132 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \
133 V(FLOAT_ARRAY_FUN_INDEX, JSFunction, float_array_fun) \
134 V(DOUBLE_ARRAY_FUN_INDEX, JSFunction, double_array_fun) \
127 V(FUNCTION_MAP_INDEX, Map, function_map) \ 135 V(FUNCTION_MAP_INDEX, Map, function_map) \
128 V(STRICT_MODE_FUNCTION_MAP_INDEX, Map, strict_mode_function_map) \ 136 V(STRICT_MODE_FUNCTION_MAP_INDEX, Map, strict_mode_function_map) \
129 V(FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, function_without_prototype_map) \ 137 V(FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, function_without_prototype_map) \
130 V(STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ 138 V(STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \
131 strict_mode_function_without_prototype_map) \ 139 strict_mode_function_without_prototype_map) \
132 V(FUNCTION_INSTANCE_MAP_INDEX, Map, function_instance_map) \ 140 V(FUNCTION_INSTANCE_MAP_INDEX, Map, function_instance_map) \
133 V(STRICT_MODE_FUNCTION_INSTANCE_MAP_INDEX, Map, \ 141 V(STRICT_MODE_FUNCTION_INSTANCE_MAP_INDEX, Map, \
134 strict_mode_function_instance_map) \ 142 strict_mode_function_instance_map) \
135 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ 143 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\
136 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ 144 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 TO_DETAIL_STRING_FUN_INDEX, 279 TO_DETAIL_STRING_FUN_INDEX,
272 TO_OBJECT_FUN_INDEX, 280 TO_OBJECT_FUN_INDEX,
273 TO_INTEGER_FUN_INDEX, 281 TO_INTEGER_FUN_INDEX,
274 TO_UINT32_FUN_INDEX, 282 TO_UINT32_FUN_INDEX,
275 TO_INT32_FUN_INDEX, 283 TO_INT32_FUN_INDEX,
276 TO_BOOLEAN_FUN_INDEX, 284 TO_BOOLEAN_FUN_INDEX,
277 GLOBAL_EVAL_FUN_INDEX, 285 GLOBAL_EVAL_FUN_INDEX,
278 INSTANTIATE_FUN_INDEX, 286 INSTANTIATE_FUN_INDEX,
279 CONFIGURE_INSTANCE_FUN_INDEX, 287 CONFIGURE_INSTANCE_FUN_INDEX,
280 ARRAY_BUFFER_FUN_INDEX, 288 ARRAY_BUFFER_FUN_INDEX,
289 UINT8_ARRAY_FUN_INDEX,
290 INT8_ARRAY_FUN_INDEX,
291 UINT16_ARRAY_FUN_INDEX,
292 INT16_ARRAY_FUN_INDEX,
293 UINT32_ARRAY_FUN_INDEX,
294 INT32_ARRAY_FUN_INDEX,
295 FLOAT_ARRAY_FUN_INDEX,
296 DOUBLE_ARRAY_FUN_INDEX,
281 MESSAGE_LISTENERS_INDEX, 297 MESSAGE_LISTENERS_INDEX,
282 MAKE_MESSAGE_FUN_INDEX, 298 MAKE_MESSAGE_FUN_INDEX,
283 GET_STACK_TRACE_LINE_INDEX, 299 GET_STACK_TRACE_LINE_INDEX,
284 CONFIGURE_GLOBAL_INDEX, 300 CONFIGURE_GLOBAL_INDEX,
285 FUNCTION_CACHE_INDEX, 301 FUNCTION_CACHE_INDEX,
286 JSFUNCTION_RESULT_CACHES_INDEX, 302 JSFUNCTION_RESULT_CACHES_INDEX,
287 NORMALIZED_MAP_CACHE_INDEX, 303 NORMALIZED_MAP_CACHE_INDEX,
288 RUNTIME_CONTEXT_INDEX, 304 RUNTIME_CONTEXT_INDEX,
289 CALL_AS_FUNCTION_DELEGATE_INDEX, 305 CALL_AS_FUNCTION_DELEGATE_INDEX,
290 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, 306 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX,
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 static bool IsBootstrappingOrGlobalObject(Object* object); 496 static bool IsBootstrappingOrGlobalObject(Object* object);
481 #endif 497 #endif
482 498
483 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); 499 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize);
484 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 500 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
485 }; 501 };
486 502
487 } } // namespace v8::internal 503 } } // namespace v8::internal
488 504
489 #endif // V8_CONTEXTS_H_ 505 #endif // V8_CONTEXTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698