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

Side by Side Diff: src/isolate.cc

Issue 935033003: Move LookupResult into crankshaft as that's now the only place where it's still used (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/isolate.h ('k') | src/objects.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 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/v8.h" 10 #include "src/v8.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 js_entry_sp_ = NULL; 76 js_entry_sp_ = NULL;
77 external_callback_scope_ = NULL; 77 external_callback_scope_ = NULL;
78 current_vm_state_ = EXTERNAL; 78 current_vm_state_ = EXTERNAL;
79 try_catch_handler_ = NULL; 79 try_catch_handler_ = NULL;
80 context_ = NULL; 80 context_ = NULL;
81 thread_id_ = ThreadId::Invalid(); 81 thread_id_ = ThreadId::Invalid();
82 external_caught_exception_ = false; 82 external_caught_exception_ = false;
83 failed_access_check_callback_ = NULL; 83 failed_access_check_callback_ = NULL;
84 save_context_ = NULL; 84 save_context_ = NULL;
85 catcher_ = NULL; 85 catcher_ = NULL;
86 top_lookup_result_ = NULL;
87 promise_on_stack_ = NULL; 86 promise_on_stack_ = NULL;
88 87
89 // These members are re-initialized later after deserialization 88 // These members are re-initialized later after deserialization
90 // is complete. 89 // is complete.
91 pending_exception_ = NULL; 90 pending_exception_ = NULL;
92 has_pending_message_ = false; 91 has_pending_message_ = false;
93 rethrowing_message_ = false; 92 rethrowing_message_ = false;
94 pending_message_obj_ = NULL; 93 pending_message_obj_ = NULL;
95 pending_message_script_ = NULL; 94 pending_message_script_ = NULL;
96 scheduled_exception_ = NULL; 95 scheduled_exception_ = NULL;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 block = block->next_) { 199 block = block->next_) {
201 v->VisitPointer(bit_cast<Object**>(&(block->exception_))); 200 v->VisitPointer(bit_cast<Object**>(&(block->exception_)));
202 v->VisitPointer(bit_cast<Object**>(&(block->message_obj_))); 201 v->VisitPointer(bit_cast<Object**>(&(block->message_obj_)));
203 v->VisitPointer(bit_cast<Object**>(&(block->message_script_))); 202 v->VisitPointer(bit_cast<Object**>(&(block->message_script_)));
204 } 203 }
205 204
206 // Iterate over pointers on native execution stack. 205 // Iterate over pointers on native execution stack.
207 for (StackFrameIterator it(this, thread); !it.done(); it.Advance()) { 206 for (StackFrameIterator it(this, thread); !it.done(); it.Advance()) {
208 it.frame()->Iterate(v); 207 it.frame()->Iterate(v);
209 } 208 }
210
211 // Iterate pointers in live lookup results.
212 thread->top_lookup_result_->Iterate(v);
213 } 209 }
214 210
215 211
216 void Isolate::Iterate(ObjectVisitor* v) { 212 void Isolate::Iterate(ObjectVisitor* v) {
217 ThreadLocalTop* current_t = thread_local_top(); 213 ThreadLocalTop* current_t = thread_local_top();
218 Iterate(v, current_t); 214 Iterate(v, current_t);
219 } 215 }
220 216
221 217
222 void Isolate::IterateDeferredHandles(ObjectVisitor* visitor) { 218 void Isolate::IterateDeferredHandles(ObjectVisitor* visitor) {
(...skipping 2417 matching lines...) Expand 10 before | Expand all | Expand 10 after
2640 if (prev_ && prev_->Intercept(flag)) return true; 2636 if (prev_ && prev_->Intercept(flag)) return true;
2641 // Then check whether this scope intercepts. 2637 // Then check whether this scope intercepts.
2642 if ((flag & intercept_mask_)) { 2638 if ((flag & intercept_mask_)) {
2643 intercepted_flags_ |= flag; 2639 intercepted_flags_ |= flag;
2644 return true; 2640 return true;
2645 } 2641 }
2646 return false; 2642 return false;
2647 } 2643 }
2648 2644
2649 } } // namespace v8::internal 2645 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698