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

Side by Side Diff: src/contexts-inl.h

Issue 1834633003: [debugger] allow debug-evaluate to change stack and context values. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comments Created 4 years, 8 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/contexts.cc ('k') | src/debug/debug-evaluate.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_INL_H_ 5 #ifndef V8_CONTEXTS_INL_H_
6 #define V8_CONTEXTS_INL_H_ 6 #define V8_CONTEXTS_INL_H_
7 7
8 #include "src/contexts.h" 8 #include "src/contexts.h"
9 #include "src/objects-inl.h" 9 #include "src/objects-inl.h"
10 10
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 Map* map = this->map(); 98 Map* map = this->map();
99 return map == map->GetHeap()->catch_context_map(); 99 return map == map->GetHeap()->catch_context_map();
100 } 100 }
101 101
102 102
103 bool Context::IsWithContext() { 103 bool Context::IsWithContext() {
104 Map* map = this->map(); 104 Map* map = this->map();
105 return map == map->GetHeap()->with_context_map(); 105 return map == map->GetHeap()->with_context_map();
106 } 106 }
107 107
108 bool Context::IsDebugEvaluateContext() {
109 Map* map = this->map();
110 return map == map->GetHeap()->debug_evaluate_context_map();
111 }
108 112
109 bool Context::IsBlockContext() { 113 bool Context::IsBlockContext() {
110 Map* map = this->map(); 114 Map* map = this->map();
111 return map == map->GetHeap()->block_context_map(); 115 return map == map->GetHeap()->block_context_map();
112 } 116 }
113 117
114 118
115 bool Context::IsModuleContext() { 119 bool Context::IsModuleContext() {
116 Map* map = this->map(); 120 Map* map = this->map();
117 return map == map->GetHeap()->module_context_map(); 121 return map == map->GetHeap()->module_context_map();
(...skipping 26 matching lines...) Expand all
144 return type::cast(get(index)); \ 148 return type::cast(get(index)); \
145 } 149 }
146 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSORS) 150 NATIVE_CONTEXT_FIELDS(NATIVE_CONTEXT_FIELD_ACCESSORS)
147 #undef NATIVE_CONTEXT_FIELD_ACCESSORS 151 #undef NATIVE_CONTEXT_FIELD_ACCESSORS
148 152
149 153
150 } // namespace internal 154 } // namespace internal
151 } // namespace v8 155 } // namespace v8
152 156
153 #endif // V8_CONTEXTS_INL_H_ 157 #endif // V8_CONTEXTS_INL_H_
OLDNEW
« no previous file with comments | « src/contexts.cc ('k') | src/debug/debug-evaluate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698