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

Side by Side Diff: src/contexts.h

Issue 1378403004: [api] expose Array Iterators to API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased u_u Created 5 years, 2 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/array-iterator.js ('k') | test/cctest/test-api.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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 96
97 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ 97 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \
98 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ 98 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \
99 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ 99 V(ARRAY_POP_INDEX, JSFunction, array_pop) \
100 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ 100 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \
101 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ 101 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \
102 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ 102 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \
103 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ 103 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \
104 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ 104 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \
105 V(ARRAY_KEYS_ITERATOR_INDEX, JSFunction, array_keys_iterator) \
105 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ 106 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \
107 V(ARRAY_ENTRIES_ITERATOR_INDEX, JSFunction, array_entries_iterator) \
106 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ 108 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \
107 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ 109 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \
108 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ 110 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \
109 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ 111 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \
110 V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \ 112 V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \
111 V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \ 113 V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \
112 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ 114 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \
113 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ 115 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \
114 V(JSON_SERIALIZE_ADAPTER_INDEX, JSFunction, json_serialize_adapter) \ 116 V(JSON_SERIALIZE_ADAPTER_INDEX, JSFunction, json_serialize_adapter) \
115 V(MAKE_ERROR_FUNCTION_INDEX, JSFunction, make_error_function) \ 117 V(MAKE_ERROR_FUNCTION_INDEX, JSFunction, make_error_function) \
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 #endif 552 #endif
551 553
552 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 554 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
553 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 555 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
554 }; 556 };
555 557
556 } // namespace internal 558 } // namespace internal
557 } // namespace v8 559 } // namespace v8
558 560
559 #endif // V8_CONTEXTS_H_ 561 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/array-iterator.js ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698