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

Side by Side Diff: src/contexts.h

Issue 1556333002: [runtime] Migrate several Date builtins to C++. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments Created 4 years, 11 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/builtins.cc ('k') | src/date.h » ('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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ 103 #define NATIVE_CONTEXT_IMPORTED_FIELDS(V) \
104 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \ 104 V(ARRAY_CONCAT_INDEX, JSFunction, array_concat) \
105 V(ARRAY_POP_INDEX, JSFunction, array_pop) \ 105 V(ARRAY_POP_INDEX, JSFunction, array_pop) \
106 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \ 106 V(ARRAY_PUSH_INDEX, JSFunction, array_push) \
107 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \ 107 V(ARRAY_SHIFT_INDEX, JSFunction, array_shift) \
108 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \ 108 V(ARRAY_SPLICE_INDEX, JSFunction, array_splice) \
109 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \ 109 V(ARRAY_SLICE_INDEX, JSFunction, array_slice) \
110 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \ 110 V(ARRAY_UNSHIFT_INDEX, JSFunction, array_unshift) \
111 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ 111 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \
112 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \
113 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ 112 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \
114 V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \ 113 V(ERROR_FUNCTION_INDEX, JSFunction, error_function) \
115 V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \ 114 V(EVAL_ERROR_FUNCTION_INDEX, JSFunction, eval_error_function) \
116 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ 115 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \
117 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ 116 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \
118 V(JSON_SERIALIZE_ADAPTER_INDEX, JSFunction, json_serialize_adapter) \ 117 V(JSON_SERIALIZE_ADAPTER_INDEX, JSFunction, json_serialize_adapter) \
119 V(MAKE_ERROR_FUNCTION_INDEX, JSFunction, make_error_function) \ 118 V(MAKE_ERROR_FUNCTION_INDEX, JSFunction, make_error_function) \
120 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \ 119 V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \
121 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \ 120 V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \
122 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \ 121 V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 #endif 591 #endif
593 592
594 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 593 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
595 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 594 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
596 }; 595 };
597 596
598 } // namespace internal 597 } // namespace internal
599 } // namespace v8 598 } // namespace v8
600 599
601 #endif // V8_CONTEXTS_H_ 600 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/date.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698