| OLD | NEW |
| 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_DEBUG_DEBUG_EVALUATE_H_ | 5 #ifndef V8_DEBUG_DEBUG_EVALUATE_H_ |
| 6 #define V8_DEBUG_DEBUG_EVALUATE_H_ | 6 #define V8_DEBUG_DEBUG_EVALUATE_H_ |
| 7 | 7 |
| 8 #include "src/frames.h" | 8 #include "src/frames.h" |
| 9 #include "src/objects.h" | 9 #include "src/objects.h" |
| 10 | 10 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 void UpdateContextChainFromMaterializedObject(Handle<JSObject> source, | 80 void UpdateContextChainFromMaterializedObject(Handle<JSObject> source, |
| 81 Handle<Context> context); | 81 Handle<Context> context); |
| 82 | 82 |
| 83 Handle<Context> MaterializeReceiver(Handle<Context> parent_context, | 83 Handle<Context> MaterializeReceiver(Handle<Context> parent_context, |
| 84 Handle<Context> lookup_context, | 84 Handle<Context> lookup_context, |
| 85 Handle<JSFunction> local_function, | 85 Handle<JSFunction> local_function, |
| 86 Handle<JSFunction> global_function, | 86 Handle<JSFunction> global_function, |
| 87 bool this_is_non_local); | 87 bool this_is_non_local); |
| 88 | 88 |
| 89 MaybeHandle<Object> LoadFromContext(Handle<Context> context, | 89 MaybeHandle<Object> LoadFromContext(Handle<Context> context, |
| 90 Handle<String> name); | 90 Handle<String> name, bool* global); |
| 91 | 91 |
| 92 void StoreToContext(Handle<Context> context, Handle<String> name, | 92 void StoreToContext(Handle<Context> context, Handle<String> name, |
| 93 Handle<Object> value); | 93 Handle<Object> value); |
| 94 | 94 |
| 95 Handle<SharedFunctionInfo> outer_info_; | 95 Handle<SharedFunctionInfo> outer_info_; |
| 96 Handle<Context> innermost_context_; | 96 Handle<Context> innermost_context_; |
| 97 List<ContextChainElement> context_chain_; | 97 List<ContextChainElement> context_chain_; |
| 98 List<Handle<String> > non_locals_; | 98 List<Handle<String> > non_locals_; |
| 99 Isolate* isolate_; | 99 Isolate* isolate_; |
| 100 JavaScriptFrame* frame_; | 100 JavaScriptFrame* frame_; |
| 101 int inlined_jsframe_index_; | 101 int inlined_jsframe_index_; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 static MaybeHandle<Object> Evaluate(Isolate* isolate, | 104 static MaybeHandle<Object> Evaluate(Isolate* isolate, |
| 105 Handle<SharedFunctionInfo> outer_info, | 105 Handle<SharedFunctionInfo> outer_info, |
| 106 Handle<Context> context, | 106 Handle<Context> context, |
| 107 Handle<HeapObject> context_extension, | 107 Handle<HeapObject> context_extension, |
| 108 Handle<Object> receiver, | 108 Handle<Object> receiver, |
| 109 Handle<String> source); | 109 Handle<String> source); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 | 112 |
| 113 } // namespace internal | 113 } // namespace internal |
| 114 } // namespace v8 | 114 } // namespace v8 |
| 115 | 115 |
| 116 #endif // V8_DEBUG_DEBUG_EVALUATE_H_ | 116 #endif // V8_DEBUG_DEBUG_EVALUATE_H_ |
| OLD | NEW |