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

Side by Side Diff: src/contexts.h

Issue 2487053002: [promises] Remove one runtime call to create_resolving_functions (Closed)
Patch Set: rebase Created 4 years, 1 month 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
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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 NATIVE_CONTEXT_SLOTS, 471 NATIVE_CONTEXT_SLOTS,
472 FIRST_WEAK_SLOT = OPTIMIZED_FUNCTIONS_LIST, 472 FIRST_WEAK_SLOT = OPTIMIZED_FUNCTIONS_LIST,
473 FIRST_JS_ARRAY_MAP_SLOT = JS_ARRAY_FAST_SMI_ELEMENTS_MAP_INDEX, 473 FIRST_JS_ARRAY_MAP_SLOT = JS_ARRAY_FAST_SMI_ELEMENTS_MAP_INDEX,
474 474
475 MIN_CONTEXT_SLOTS = GLOBAL_PROXY_INDEX, 475 MIN_CONTEXT_SLOTS = GLOBAL_PROXY_INDEX,
476 // This slot holds the thrown value in catch contexts. 476 // This slot holds the thrown value in catch contexts.
477 THROWN_OBJECT_INDEX = MIN_CONTEXT_SLOTS, 477 THROWN_OBJECT_INDEX = MIN_CONTEXT_SLOTS,
478 478
479 // These slots hold values in debug evaluate contexts. 479 // These slots hold values in debug evaluate contexts.
480 WRAPPED_CONTEXT_INDEX = MIN_CONTEXT_SLOTS, 480 WRAPPED_CONTEXT_INDEX = MIN_CONTEXT_SLOTS,
481 WHITE_LIST_INDEX = MIN_CONTEXT_SLOTS + 1 481 WHITE_LIST_INDEX = MIN_CONTEXT_SLOTS + 1,
adamk 2016/11/10 18:10:54 You can drop this change still :) (and leave this
gsathya 2016/11/11 02:34:36 Done.
482 }; 482 };
483 483
484 void IncrementErrorsThrown(); 484 void IncrementErrorsThrown();
485 int GetErrorsThrown(); 485 int GetErrorsThrown();
486 486
487 // Direct slot access. 487 // Direct slot access.
488 inline JSFunction* closure(); 488 inline JSFunction* closure();
489 inline void set_closure(JSFunction* closure); 489 inline void set_closure(JSFunction* closure);
490 490
491 inline Context* previous(); 491 inline Context* previous();
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 649 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
650 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 650 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
651 }; 651 };
652 652
653 typedef Context::Field ContextField; 653 typedef Context::Field ContextField;
654 654
655 } // namespace internal 655 } // namespace internal
656 } // namespace v8 656 } // namespace v8
657 657
658 #endif // V8_CONTEXTS_H_ 658 #endif // V8_CONTEXTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698