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

Side by Side Diff: src/contexts.h

Issue 1213203007: Create a internal, global native context used only for generated code stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 5 years, 5 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/code-stubs.js ('k') | src/heap/heap.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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 SET_FROM_ARRAY_INDEX, 458 SET_FROM_ARRAY_INDEX,
459 MAP_ITERATOR_MAP_INDEX, 459 MAP_ITERATOR_MAP_INDEX,
460 SET_ITERATOR_MAP_INDEX, 460 SET_ITERATOR_MAP_INDEX,
461 ARRAY_VALUES_ITERATOR_INDEX, 461 ARRAY_VALUES_ITERATOR_INDEX,
462 SCRIPT_CONTEXT_TABLE_INDEX, 462 SCRIPT_CONTEXT_TABLE_INDEX,
463 MAP_CACHE_INDEX, 463 MAP_CACHE_INDEX,
464 STRONG_MAP_CACHE_INDEX, 464 STRONG_MAP_CACHE_INDEX,
465 TO_LENGTH_FUN_INDEX, 465 TO_LENGTH_FUN_INDEX,
466 NATIVES_UTILS_OBJECT_INDEX, 466 NATIVES_UTILS_OBJECT_INDEX,
467 EXTRAS_EXPORTS_OBJECT_INDEX, 467 EXTRAS_EXPORTS_OBJECT_INDEX,
468 CODE_STUB_EXPORTS_OBJECT_INDEX,
468 469
469 // Properties from here are treated as weak references by the full GC. 470 // Properties from here are treated as weak references by the full GC.
470 // Scavenge treats them as strong references. 471 // Scavenge treats them as strong references.
471 OPTIMIZED_FUNCTIONS_LIST, // Weak. 472 OPTIMIZED_FUNCTIONS_LIST, // Weak.
472 OPTIMIZED_CODE_LIST, // Weak. 473 OPTIMIZED_CODE_LIST, // Weak.
473 DEOPTIMIZED_CODE_LIST, // Weak. 474 DEOPTIMIZED_CODE_LIST, // Weak.
474 NEXT_CONTEXT_LINK, // Weak. 475 NEXT_CONTEXT_LINK, // Weak.
475 476
476 // Total number of slots. 477 // Total number of slots.
477 NATIVE_CONTEXT_SLOTS, 478 NATIVE_CONTEXT_SLOTS,
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 669 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
669 #endif 670 #endif
670 671
671 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 672 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
672 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 673 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
673 }; 674 };
674 675
675 } } // namespace v8::internal 676 } } // namespace v8::internal
676 677
677 #endif // V8_CONTEXTS_H_ 678 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/code-stubs.js ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698