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

Side by Side Diff: src/contexts.h

Issue 457333003: Change the type of the cache so we can check whether it is there (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | src/objects.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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ 153 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \
154 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ 154 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \
155 V(ALIASED_ARGUMENTS_MAP_INDEX, Map, aliased_arguments_map) \ 155 V(ALIASED_ARGUMENTS_MAP_INDEX, Map, aliased_arguments_map) \
156 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ 156 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \
157 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ 157 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \
158 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ 158 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \
159 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ 159 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \
160 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ 160 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \
161 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ 161 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \
162 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ 162 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \
163 V(NORMALIZED_MAP_CACHE_INDEX, NormalizedMapCache, normalized_map_cache) \ 163 V(NORMALIZED_MAP_CACHE_INDEX, Object, normalized_map_cache) \
164 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ 164 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \
165 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ 165 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \
166 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ 166 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \
167 call_as_constructor_delegate) \ 167 call_as_constructor_delegate) \
168 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ 168 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \
169 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ 169 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \
170 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ 170 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \
171 V(MAP_CACHE_INDEX, Object, map_cache) \ 171 V(MAP_CACHE_INDEX, Object, map_cache) \
172 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ 172 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \
173 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ 173 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 582 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
583 #endif 583 #endif
584 584
585 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 585 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
586 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 586 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
587 }; 587 };
588 588
589 } } // namespace v8::internal 589 } } // namespace v8::internal
590 590
591 #endif // V8_CONTEXTS_H_ 591 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698